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>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
<div id="wrap">
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
<div>
<img src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
</div>
<div>
<img id="about" src="http://www.zssmt.sk/e107/e107_images/icons/icon20.png">
</div>
newDiv = document.createElement("div");
$newDiv = $("<div/>");
var divs,
newDiv,
$newDiv,
parent,
cloned,
nextElement;
Ready to run.
Test | Ops/sec | |
---|---|---|
fetch elements by tag (jQuery) |
| ready |
fetch elements by tag (raw JS) |
| ready |
create element (jQuery ..) |
| ready |
create element (raw JS ++) |
| ready |
Add class .. |
| ready |
Add class ++ |
| ready |
Append new element .. |
| ready |
Append new element ++ |
| ready |
Filter elements, add attribute .. |
| ready |
Filter elements, add attribute ++ |
| ready |
Parent of ID node .. |
| ready |
Parent of ID node ++ |
| ready |
Clone ID node .. |
| ready |
Clone ID node ++ |
| ready |
Empty ID node .. |
| ready |
Empty ID node ++ |
| ready |
Find next() of ID node .. |
| ready |
Find next() of ID node ++ |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.