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>
var html = "<div><ul><li>df</li><li>fdf</li></ul></div>";
var d = document.createElement('div');
var f = document.createDocumentFragment();
var di = document.createElement('div');
var ule = document.createElement('ul');
var li1 = document.createElement('li');
li1.textContent = "df";
ule.appendChild(li1);
var li2 = document.createElement('li');
li2.textContent = "fdf";
ule.appendChild(li2);
di.appendChild(ule);
f.appendChild(di);
document.body.appendChild(d);
var $d = $(d);
document.body.removeChild(d);
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery append fragment |
| ready |
innerHTML |
| ready |
fragment |
| ready |
cached $d appendChild |
| ready |
cached $d append |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.