check item node name (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script src="http://code.jquery.com/jquery-1.6.min.js"></script>

<select id="s"><option>bah</option></select>
 
<script>
  var s = jQuery('#s');
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
is()
var x = s.is('select');
ready
nodeName
var x = s[0].nodeName.toLowerCase() == 'select';
ready

Revisions

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