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 res = [];
var args = new Array(100).fill( new Array(1000).join('#') );
function f1(a, b, c){
res = [a, b, c];
}
function f2(){
res = [arguments[0], arguments[1], arguments[2]];
}
function d1(Arguments){
res = Arguments.slice(0, 3);
}
function dd2(Arguments){
res = Array.prototype.slice.call(Arguments, 0, 3);
}
function dd3(){
res = Array.prototype.slice.call(arguments, 0, 3);
}
function len1(Arguments){
res = Arguments.length;
}
function len2(){
res = arguments.length;
}
res = [];
args = new Array(100).fill( new Array(1000).join('#') );
Ready to run.
Test | Ops/sec | |
---|---|---|
F series #1 |
| ready |
F series #2 |
| ready |
D series #1 |
| ready |
D series #2 |
| ready |
D series #3 |
| ready |
LEN series #1 |
| ready |
LEN series #2 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.