Method getLast & selector:getlast

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/mootools/1.3/mootools-yui-compressed.js">
</script>
<ul id="list">
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
  <li>
    li
  </li>
</ul>

Test runner

Ready to run.

Testing in
TestOps/sec
1
$$("ul !^");
ready
2
$$('ul:last-child');
ready
3
$$('li').getLast();
ready

Revisions

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