jq-selectors (v6)

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

Revisions

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