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
Are native DOM methods faster than selector engines, even if looping and other steps are involved?
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script src="//yui.yahooapis.com/3.2.0pr2/build/simpleyui/simpleyui-min.js"></script>
<div>foo</div>
<div id="bar"><ul>
<li>bar</li>
<li class="foo bar">foo bar</li>
<li class="foo bar"><span class="baz">baz</span></li>
</ul></div>
Ready to run.
Test | Ops/sec | |
---|---|---|
Native |
| ready |
querySelector |
| ready |
$() |
| ready |
Y.one() |
| ready |
XPath |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.