Loop De Loop
JavaScript performance comparison
Preparation code
<ol>
<li>
first
</li>
<li>
second
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
<li>
third
</li>
<li>
first
</li>
<li>
second
</li>
<li>
third
</li>
</ol>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js">
</script>
Preparation code output
- first
- second
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- third
- first
- second
- third
- first
- second
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- third
- first
- second
- third
- first
- second
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- third
- first
- second
- third
- first
- second
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- third
- first
- second
- third
- first
- second
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- third
- first
- second
- third
- first
- second
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- third
- first
- second
- third
- first
- second
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- third
- first
- second
- third
- first
- second
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- first
- second
- third
- third
- first
- second
- third
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
jquery chains |
|
pending… |
jquery "loop" |
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:
- Revision 1: published by Josh
- Revision 2: published
- Revision 3: published
- Revision 4: published by Elijah Manor
- Revision 5: published
- Revision 6: published by Elijah Manor
- Revision 7: published by Ben
0 comments