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
Comparison of performance between jQuery versions
<div id="test">
<div class="testlink">
<a href="#" id="linkone" title="test">test link</a>
</div>
<form id="testform" action=""></form>
<div class="testmenu">
<ul>
<li class="menuitem itemone">
<a href="#" title="item 1">menu item 1</a>
</li>
<li class="menuitem itemtwo">
<a href="#" title="item 2">menu item 2</a>
</li>
<li class="menuitem itemthree">
not clickable item 3
</li>
</ul>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script> var $jq14 = jQuery.noConflict( true ); </script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script> var $jq16 = jQuery.noConflict( true ); </script>
Ready to run.
Test | Ops/sec | |
---|---|---|
1.4 by id |
| ready |
1.6 by id |
| ready |
1.4 by class |
| ready |
1.6 by class |
| ready |
1.4 descendent tag - class |
| ready |
1.6 descendent tag - class |
| ready |
1.4 by attr |
| ready |
1.6 by attr |
| ready |
1.4 with regex |
| ready |
1.6 with regex |
| ready |
1.4 nth-child(even) |
| ready |
1.6 nth-child(even) |
| ready |
1.4 form select |
| ready |
1.6 form select |
| ready |
1.4 unquoted attr with simpler regex |
| ready |
1.6 unquoted attr with simpler regex |
| ready |
1.4 unquoted attr check |
| ready |
1.6 unquoted attr check |
| ready |
1.4 tagged-Id |
| ready |
1.6 taggedId |
| ready |
1.4 generic descendant |
| ready |
1.6 generic descendant |
| ready |
1.4 multiple |
| ready |
1.6 multiple |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.