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="root">
<div></div>
<div></div>
<div></div>
<div></div>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<div></div>
<div>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
</div>
<div></div>
<div></div>
<p>tacos</p>
<h1>tacos</h1>
<h2>tacos</h2>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<h3>tacos</h3>
<h4>tacos</h4>
<h5>tacos</h5>
<h6>tacos</h6>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
<span>tacos</span>
</div>
var nodes = document.getElementById('root').children;
var results = [];
var regex = /^(DIV|P|H[1-6])$/;
var validNodeNames = ['DIV', 'P', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6'];
Ready to run.
Test | Ops/sec | |
---|---|---|
regex |
| ready |
indexof |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.