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/2.0.3/jquery.min.js"></script>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
<div id="wrap">
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
<div>
<img src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.png">
</div>
</div>
<div>
<img id="about" src="http://wiki.guildwars2.com/images/8/89/User_Aspectacle_norn_48px.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.