jq-selectors (v2)

Revision 2 of this benchmark created on


Preparation HTML

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

<form id="form"><input type="text" /></form>

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 form
var i = $("input[type=text]", "#form");
ready

Revisions

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