:input vs input

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<form>
<input type="button" value="Input Button">
<input type="checkbox">
<input type="file">
<input type="hidden">
<input type="image">
<input type="password">
<input type="radio">
<input type="reset">
<input type="submit">
<input type="text">
<select>
<option>Option</option>
</select>
<textarea></textarea>
<button>Button</button>
</form>

Test runner

Ready to run.

Testing in
TestOps/sec
:input
$(':input').hide();
$(':input').show();
ready
inputs
$('input, button, select, textarea').hide();
$('input, button, select, textarea').show();
ready

Revisions

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