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 arr = [
42,
3.14,
"Hello, world!",
true,
false,
null,
undefined,
NaN,
Infinity,
-Infinity,
BigInt(1234567890123456789n),
"Another string",
256,
512.768,
"Yet another string",
true,
BigInt(9876543210987654321n),
null,
1024,
2048.4096,
"More strings",
false,
undefined,
128,
64.32,
"String again",
true,
null,
BigInt(1000000000000000000n),
8192,
4096.2048,
"Strings never end",
false,
undefined,
16,
8.16,
"Final string",
true,
BigInt(1111111111111111111n)
];
Ready to run.
Test | Ops/sec | |
---|---|---|
Array.find() |
| ready |
Array.indexOf() |
| ready |
Array.includes() |
| ready |
Array.some() |
| ready |
Array.findIndex() |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.