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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="top" class="mydiv">
<p id="para_1" class="mytext">
Paragraph one
</p>
<p id="para_2" class="mytext">
Paragraph two
</p>
<p id="para_3" class="mytext">
Paragraph three
</p>
<span id="span_1" class="mytext">
Text in a span
</span>
</div>
<p id="para_4" class="mytext">
Paragraph four
</p>
<p id="para_5" class="mytext">
Paragraph five
</p>
<p id="para_6" class="mytext">
Paragraph six
</p>
<script>
var parent_el = document.getElementById("top");
var cached = document.getElementById("top").getElementsByClassName(".mytext");
var $cached = $(parent_el).find('.mytext');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
JavaScript (no cache) |
| ready |
jQuery (no cache) |
| ready |
JavaScript (cache) |
| ready |
jQuery (cache) |
| ready |
JavaScript gettin element (cache) |
| ready |
jQuery getting element (cache) |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.