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 array1 =
[
"value1",
"value2",
"value3",
"value4",
"value5",
"value6",
"value7",
"value8",
"value9",
"value10",
"value11",
"value12",
"value13",
"value14",
"value15",
"value16",
"value17",
"value18",
"value19",
"value20"
];
var array2 =
[
"value1",
"value10",
"value20"
];
Ready to run.
Test | Ops/sec | |
---|---|---|
For loop |
| ready |
For loop without break |
| ready |
new0 |
| ready |
new1 |
| ready |
Array.indexOf() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.