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
const arr = [1, 2, 3, 4]
function makeObjArray(args) {
return {a: args[0], b: args[1], c: args[2], d: args[3]};
}
function makeObjParams(v0, v1, v2, v3) {
return {a: v0, b: v1, c: v2, d: v3};
}
Ready to run.
Test | Ops/sec | |
---|---|---|
PassArray |
| ready |
PassSpread |
| ready |
PassParams |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.