ID vs Span ID (v3)

Revision 3 of this benchmark created on


Preparation HTML

<span id="someId">test</span><script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
ID
console.log(jQuery('#someId'));
ready
Span with ID
console.log(jQuery('span#someId'));
ready

Revisions

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