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="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<div id="counter" style="display: none;">
</div>
var elem = document.getElementById("counter");
var $elem = $('#counter')
var range = document.createRange();
range.selectNode(document.body);
var nodeString = '<span class="feline">meow im a cat</span>';
elem.innerHTML = '';
Ready to run.
Test | Ops/sec | |
---|---|---|
insertAdjacentHTML x1000 |
| ready |
innerHTML x1000 |
| ready |
appendChild x1000 |
| ready |
insertAdjacentHTML x100 |
| ready |
innerHTML x100 |
| ready |
appendChild x100 |
| ready |
jQuery.buildFragment x100 |
| ready |
jQuery x100 |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.