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
Checking if "complex" request to querySelectorAll performs against several getElementsByTagName.
<nav id="menu">
<ul>
<li class="first">
<img scr="icon1.webp">
<a href="#">item 1</a>
<kbd>
ctrl + A
</kbd>
<ul>
<li class="second">
<img scr="icon1.webp">
<a href="#">item 1</a>
<kbd>
ctrl + X
</kbd>
</li>
<li class="second">
<img scr="iconb.webp">
<a href="#">item 2</a>
<kbd>
ctrl + Y
</kbd>
</li>
<li class="second">
<img scr="icon3.webp">
<a href="#">item 3</a>
<kbd>
ctrl + Z
</kbd>
</li>
</ul>
</li>
<li class="first">
<img scr="icon2.webp">
<a href="#">item 2</a>
<kbd>
ctrl + B
</kbd>
<ul>
<li class="second">
<img scr="icon1.webp">
<a href="#">item 1</a>
<kbd>
ctrl + X
</kbd>
</li>
<li class="second">
<img scr="iconb.webp">
<a href="#">item 2</a>
<kbd>
ctrl + Y
</kbd>
</li>
<li class="second">
<img scr="icon3.webp">
<a href="#">item 3</a>
<kbd>
ctrl + Z
</kbd>
</li>
</ul>
</li>
<li class="first">
<img scr="icon3.webp">
<a href="#">item 3</a>
<kbd>
ctrl + C
</kbd>
<ul>
<li class="second">
<img scr="icon1.webp">
<a href="#">item 1</a>
<kbd>
ctrl + X
</kbd>
</li>
<li class="second">
<img scr="iconb.webp">
<a href="#">item 2</a>
<kbd>
ctrl + Y
</kbd>
</li>
<li class="second">
<img scr="icon3.webp">
<a href="#">item 3</a>
<kbd>
ctrl + Z
</kbd>
</li>
</ul>
</li>
<li class="first">
<img scr="icon4.webp">
<a href="#">item 4</a>
<kbd>
ctrl + D
</kbd>
<ul>
<li class="second">
<img scr="icon1.webp">
<a href="#">item 1</a>
<kbd>
ctrl + X
</kbd>
</li>
<li class="second">
<img scr="iconb.webp">
<a href="#">item 2</a>
<kbd>
ctrl + Y
</kbd>
</li>
<li class="second">
<img scr="icon3.webp">
<a href="#">item 3</a>
<kbd>
ctrl + Z
</kbd>
</li>
</ul>
</li>
<li class="first">
<img scr="icon5.webp">
<a href="#">item 5</a>
<kbd>
ctrl + E
</kbd>
<ul>
<li class="second">
<img scr="icon1.webp">
<a href="#">item 1</a>
<kbd>
ctrl + X
</kbd>
</li>
<li class="second">
<img scr="iconb.webp">
<a href="#">item 2</a>
<kbd>
ctrl + Y
</kbd>
</li>
<li class="second">
<img scr="icon3.webp">
<a href="#">item 3</a>
<kbd>
ctrl + Z
</kbd>
</li>
</ul>
</li>
</ul>
</nav>
Ready to run.
Test | Ops/sec | |
---|---|---|
querySelectorAll |
| ready |
getElementsByTagName |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.