jQuery Selector Perf - Right-to-Left (v99)

Revision 99 of this benchmark created on


Preparation HTML

<div id="box">
  <span></span>
  <span></span>
  <span></span>
  <span></span>
  <span></span>
  <span class="test test3"></span>
  <span class="test2 test3"></span>
  <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in WebKit 537.36 / undefined
TestOps/sec
"Left to Write" Thinking
$('#box').find('span:not(.test3)').last()
ready
"Right to Left"
$('#box').find('span:not(.test3):last')
ready

Revisions

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