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 a = "";
let b = "";
function r(str, ...args) {
for(let i = 0; i < args.length; ++i) {
a+=str[i];
a+=args[i];
}
a += str[args.length];
}
function x(...args) {
b += args[0];
for(let i = 2; i < args.length; i+=2) {
b+=args[i-1];
b+=args[i];
}
}
Ready to run.
Test | Ops/sec | |
---|---|---|
A |
| ready |
B |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.