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
I saw a stackoverflow answer saying they were equal performance, and included a link to a testcase, but the dude was so dumb that the testcases didnt even work, so im doing my own testcases here to compare performance
const length = 1000;
Ready to run.
Test | Ops/sec | |
---|---|---|
preallocation 1 |
| ready |
preallocation 2 |
| ready |
dynamic allocation 3 |
| ready |
dynamic allocation 4 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.