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="http://f.cl.ly/items/0t3w1Z2R2L2s0J2D2Q2q/zepto.min.js">
</script>
<script src="http://f.cl.ly/items/2e2P0m3d1Q2U3w01230Y/jq.mobi.min.js">
</script>
<script src="http://code.jquery.com/jquery-2.0.0b1.js">
</script>
<script src="http://xuijs.com/downloads/xui-2.3.2.min.js">
</script>
<script src="http://jsrun.it/damele0n/tuMO/js">
</script>
<script src="http://jsrun.it/damele0n/tQkX/js"></script>
<div id="asdf">
</div>
function el(string) {
if (string.indexOf('#') === 0) {
return document.getElementById(string.substr(1, string.length));
}
}
//to be fair, I'll wrap getElementById in a function and return the object
function byId(id) {
return document.getElementById(id);
}
var obj= new Object();
obj.$s = function(s) {
return document.getElementById(s);
}
var boolean = true;
Ready to run.
Test | Ops/sec | |
---|---|---|
jQuery 2 |
| ready |
Direct by reference |
| ready |
jQMobi |
| ready |
Raw/baseline |
| ready |
Wrapped Raw |
| ready |
Straight getElementById |
| ready |
XUI |
| ready |
querySelector |
| ready |
Riddle.js |
| ready |
kQuery |
| ready |
Zepto |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.