gebidvsqsa

Benchmark created by Gary on


Preparation HTML

<div id="one" class="block"></div>
<div id="two" class="block"></div>
<div id="three" class="block"></div>
<div id="four" class="block"></div>
<div id="five" class="block"></div>
<div id="six" class="block"></div>
<div id="seven" class="block"></div>
<div id="eight" class="block"></div>
<div id="nine" class="block"></div>
<div id="ten" class="block"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
gebid
document.getElementById('one');
document.getElementById('two');
document.getElementById('three');
document.getElementById('four');
document.getElementById('five');
document.getElementById('six');
document.getElementById('seven');
document.getElementById('eight');
document.getElementById('nine');
document.getElementById('ten');
ready
qsa
document.querySelectorAll('.block');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.