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
Compare the speed of getElementById to querySelector
<div id="id1">1</div>
<div id="id2">2</div>
<div id="id3">3
<div id="id3a">3a</div>
<div id="id3b">3b</div>
<div id="id3c">3c</div>
<div id="id3d">3d</div>
<div id="id3e">3e</div>
<div id="id3f">3f</div>
</div>
<div id="id4">4</div>
<div id="id5">5</div>
<div id="id6">6</div>
Ready to run.
Test | Ops/sec | |
---|---|---|
getElementById |
| ready |
querySelector |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.