jq-selectors (v7)

Revision 7 of this benchmark created on


Preparation HTML

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

<input type="text" id="foo" name="foo"/>
<input type="text" id="bar" name="bar"/>

Test runner

Ready to run.

Testing in
TestOps/sec
input[type]
var i = $("input[type='text']");
ready
[type]
var i = $("[type='text']");
ready
:text
var i = $(":text");
ready
input:text
var i = $("input:text");
ready
input:text[name='foo']
var i = $("input:text[name='foo']");
ready
id='foo'
var i = $("#foo");
ready
name="foo"
var i = $("input[name='foo']");
ready

Revisions

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