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
appending nodes to DOM
<style>
#wrapper > div{ display:none; }
</style>
<div id="wrapper">
Dom Manipulation
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
var arr = [],
domArr = [];
$container = $("#wrapper");
$container.empty();
domArr.length = 0;
arr.length = 0;
for (var i = 0; i < 5; i++) {
arr.push(i);
}
Ready to run.
Test | Ops/sec | |
---|---|---|
Bad1 |
| ready |
Bad2 |
| ready |
Bad3 |
| ready |
Good1 |
| ready |
Bad5 |
| ready |
Good |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.