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
<span class="class1 class2 class3 class4">Element</span>
<span class="class1">Element</span>
<span class="class2">Element</span>
<span class="class3">Element</span>
<span class="class4">Element</span>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
var element = $('span');
Ready to run.
Test | Ops/sec | |
---|---|---|
hasClass |
| ready |
is |
| ready |
match |
| ready |
hasClass 3 |
| ready |
hasClass 4 |
| ready |
is 3 |
| ready |
is 4 |
| ready |
match 3 |
| ready |
match 4 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.