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 list = [
0,1,2,3,4,5,6,7,8,9,10,11,
111,112,113,114,115,116,117,118,119,120,
100000000001,100000000002,100000000003,100000000004,100000000005,100000000006,100000000007,100000000008,100000000009,100000000010,
Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER - 1, Number.MAX_SAFE_INTEGER - 2, Number.MAX_SAFE_INTEGER - 3, Number.MAX_SAFE_INTEGER - 4
];
Ready to run.
Test | Ops/sec | |
---|---|---|
Modulo |
| ready |
Bitwise |
| ready |
Division Operator (/) and parseInt |
| ready |
Bit Shifting |
| ready |
Math.floor |
| ready |
Array Lookup |
| ready |
Ternary Operator |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.