jsPerf.app is an online JavaScript performance benchmark test runner & jsperf.com mirror. It is a complete rewrite in homage to the once excellent jsperf.com now with hopefully a more modern & maintainable codebase.
jsperf.com URLs are mirrored at the same path, e.g:
https://jsperf.com/negative-modulo/2
Can be accessed at:
https://jsperf.app/negative-modulo/2
var i = 0
, len = 1000
, orig = new Uint8Array(len);
for ( ; i < len; ++i ) {
orig[i] = 1 - (Math.random() * 2);
}
function loopClone ( ab ) {
var i = 0
, len = ab.length
, f32 = new Uint8Array(ab.length), i = 0;
for ( ; i < len; ++i ) {
f32[i] = ab[i];
}
return f32;
}
function setClone( ab ) {
var f32 = new Uint8Array(ab.length);
f32.set(ab);
return f32;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Loop |
| ready |
Set |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.