jquery selector performance (v2)

Revision 2 of this benchmark created on


Preparation HTML

<div>
<a rel="external">hola</a>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
1
$('a[rel="external"]');
ready
2
$('[rel="external"]').filter('a');
ready
3
$('a').filter('[rel=external]');
ready

Revisions

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