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
let u = Array.from({length:10000}, (e,i) => new BigInt64Array([BigInt(i)]) );
let n = Array.from({length:10000}, (e,i) => BigInt(i) );
let o = Array.from({length:10000}, (e,i) => {return {type:"integer", value: BigInt(i)} } );
console.log(u.length, n.length)
let a = Array.from({length:10000}, (e,i) => i )
function c(big) {
let r = new BigInt64Array(big.length);
for(let i = 0; i < r.length; ++i)
r[i] = big[i];
return r;
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Recreation. |
| ready |
Slice |
| ready |
Number |
| ready |
Recreation 2 |
| ready |
Current ? |
| ready |
Recreation 3 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.