somename

Benchmark created on


Preparation HTML

<table id='mygrid'>
<tbody>
<tr id='Rec-0'><td><select role="select" id="Rec-0_per" name="per" size="1" class="editable valid"><option role="option" value="$">$</option><option role="option" value="%">%</option><option role="option" value="F">F</option></select></td>
</tr>
</tbody>
</table>



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

Test runner

Ready to run.

Testing in
TestOps/sec
gridperf
$('#mygrid tr td select[id$="_per"]');
ready
gridperf1
$('#Rec-0_per');
ready
gridperf2
$('select[id$="_per"]');
ready
gridperf3
$('[id*="Rec-"]');
ready
gridperf4
$('[id$="_per"]');
ready
gridperf5
$('select[id$="_per"]');
ready
gridperf6
$('[id*="Rec-"]').live('change',function(){});
ready
$('#mygrid tr td select[id$="_per"]').change(function(){});
ready
gridperf8
$('#mygrid tr td select').filter(function () { return /^Rec-\d_per$/.test(this.id); })
ready
grid9
$('[id]').filter(function () { return /Rec-\d*_per$/.test(this.id); });
ready

Revisions

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