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="rs-index-1" class="data-index-5" data-index="5"></div>
<div id="rs-index-2" class="data-index-10" data-index="10"></div>
<div id="rs-index-3" class="data-index-8" data-index="4"></div>
<script>
var i = 0,
el = jQuery('#el');
el.attr('data-index', 10);
el.addClass('data-index-10');
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery.data |
| ready |
jQuery.fn.data |
| ready |
123 |
| ready |
456 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.