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://staging-ian.appmobi.com/game/zepto.min.js">
</script>
<script src="https://staging-ian.appmobi.com/game/jq.mobi.min.js">
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
</script>
<div id="container">
</div>
var d = document;
d.id = function(el) {
return d.getElementById(el);
}
HTMLElement.prototype.append = function(el) {
this.appendChild(el);
}
var jp = {}; //jp, jquery style syntax, utilizing prototypes
jp.create = function(el) {
return d.createElement(el);
}
document.getElementById("container").innerHTML = "";
Ready to run.
Test | Ops/sec | |
---|---|---|
jQ.Mobi |
| ready |
jQuery |
| ready |
Zepto |
| ready |
Raw JS - Building DOM nodes |
| ready |
Raw JS - innerHTML style |
| ready |
Prototype based jquery idea |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.