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
<div id="1" class="buttsecks"></div>
<div id="2" class="buttsecks"></div>
<div id="3" class="buttsecks"></div>
<div id="4" class="buttsecks"></div>
<div id="5" class="buttsecks"></div>
<div id="6" class="buttsecks"></div>
<div id="7" class="buttsecks"></div>
<script>
String.prototype.contains = function(word) {
return (this !== '' && (' ' + this + ' ').indexOf(' ' + word + ' ') + 1);
};
function Query(k, v, f) {
var i = this.length,
j = i,
r = new Array(i);
while (--i >= 0) {
if (f && f.call(this[i][k], v) || this[i][k] === v) r[--j] = this[i];
}
return r.slice(j);
}
var all = document.all || document.getElementsByTagName('*');
var id = 'buttsecks';
var e;
</script>
Ready to run.
Test | Ops/sec | |
---|---|---|
Query Custom |
| ready |
Filter |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.