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
Added native
<script src="https://www.cinsoft.net/mylib099-min.js"></script>
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="http://zeptojs.com/zepto.min.js"></script>
<div id="rsvp" class="view" data-view-title="RSVPs">
<div class="content"></div>
</div>
<div id="chapter_004" class="view" data-view-title="Splendid Corgi Consortium">
<div class="content"></div>
</div>
var native = function(e) {
return document.querySelectorAll(e);
};
//raw document.getElementById(id) is slightly faster
native.prototype.id = function(id) {
return document.getElementById(id);
};
Ready to run.
Test | Ops/sec | |
---|---|---|
Zepto ID |
| ready |
jQuery2 ID |
| ready |
Native querySelectorAll |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.