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="block1">
<div id="block2">
<div id="block3">
<div id="block4">
<div id="block5">
<div id="block6">
<div id="block7">
<div id="block8">
<div id="block9">
<div id="block10">
content
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
var block9 = document.getElementById('block9');
var _rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/;
var block1NameCss = "#block1"
var block10NameCss = "# block10"
var match
Ready to run.
Test | Ops/sec | |
---|---|---|
getElementById level 1 |
| ready |
getElementById level 10 |
| ready |
querySelector simple |
| ready |
querySelector nested |
| ready |
You can edit these tests or add more tests to this page by appending /edit to the URL.