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
Updated test 2, because it didn't include a ul element.
<div id='container'>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>var arr = [],
urlbase = "http://www.somegallery.fr/image/",
$container = $("#container");
for (var i = 0, l = 100; i < l; i++) {
arr.push(urlbase + i);
}
$container.empty();
Ready to run.
| Test | Ops/sec | |
|---|---|---|
| append on dom | | ready |
| string concatenation | | ready |
| append on unattached dom with string concatenation | | ready |
| USE THIS: append on unattached dom without string concatenation | | ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.