selector vs. method

Benchmark created by Andreas Göbel on


Preparation HTML

<textarea id="foo"></textarea>
<a href="#">someLink</a>
<a href="#">someOtherLink</a>
<textarea id="bar"></textarea>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
method
$("#foo").nextAll("textarea").first();
ready
selector
$("#foo").nextAll("textarea:first");
ready

Revisions

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

  • Revision 1: published by Andreas Göbel on