Loop De Loop

JavaScript performance comparison

Revision 2 of this test case created

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/jquery.min.js">
</script>

Preparation code output

  1. first
  2. second
  3. first
  4. second
  5. third
  6. first
  7. second
  8. third
  9. first
  10. second
  11. third
  12. first
  13. second
  14. third
  15. first
  16. second
  17. third
  18. first
  19. second
  20. third
  21. first
  22. second
  23. third
  24. first
  25. second
  26. third
  27. first
  28. second
  29. third
  30. third
  31. first
  32. second
  33. third
  34. first
  35. second
  36. first
  37. second
  38. third
  39. first
  40. second
  41. third
  42. first
  43. second
  44. third
  45. first
  46. second
  47. third
  48. first
  49. second
  50. third
  51. first
  52. second
  53. third
  54. first
  55. second
  56. third
  57. first
  58. second
  59. third
  60. first
  61. second
  62. third
  63. third
  64. first
  65. second
  66. third
  67. first
  68. second
  69. first
  70. second
  71. third
  72. first
  73. second
  74. third
  75. first
  76. second
  77. third
  78. first
  79. second
  80. third
  81. first
  82. second
  83. third
  84. first
  85. second
  86. third
  87. first
  88. second
  89. third
  90. first
  91. second
  92. third
  93. first
  94. second
  95. third
  96. third
  97. first
  98. second
  99. third
  100. first
  101. second
  102. first
  103. second
  104. third
  105. first
  106. second
  107. third
  108. first
  109. second
  110. third
  111. first
  112. second
  113. third
  114. first
  115. second
  116. third
  117. first
  118. second
  119. third
  120. first
  121. second
  122. third
  123. first
  124. second
  125. third
  126. first
  127. second
  128. third
  129. third
  130. first
  131. second
  132. third
  133. first
  134. second
  135. first
  136. second
  137. third
  138. first
  139. second
  140. third
  141. first
  142. second
  143. third
  144. first
  145. second
  146. third
  147. first
  148. second
  149. third
  150. first
  151. second
  152. third
  153. first
  154. second
  155. third
  156. first
  157. second
  158. third
  159. first
  160. second
  161. third
  162. third
  163. first
  164. second
  165. third
  166. first
  167. second
  168. first
  169. second
  170. third
  171. first
  172. second
  173. third
  174. first
  175. second
  176. third
  177. first
  178. second
  179. third
  180. first
  181. second
  182. third
  183. first
  184. second
  185. third
  186. first
  187. second
  188. third
  189. first
  190. second
  191. third
  192. first
  193. second
  194. third
  195. third
  196. first
  197. second
  198. third
  199. first
  200. second
  201. first
  202. second
  203. third
  204. first
  205. second
  206. third
  207. first
  208. second
  209. third
  210. first
  211. second
  212. third
  213. first
  214. second
  215. third
  216. first
  217. second
  218. third
  219. first
  220. second
  221. third
  222. first
  223. second
  224. third
  225. first
  226. second
  227. third
  228. third
  229. first
  230. second
  231. third
  232. first
  233. second
  234. first
  235. second
  236. third
  237. first
  238. second
  239. third
  240. first
  241. second
  242. third
  243. first
  244. second
  245. third
  246. first
  247. second
  248. third
  249. first
  250. second
  251. third
  252. first
  253. second
  254. third
  255. first
  256. second
  257. third
  258. first
  259. second
  260. third
  261. third
  262. first
  263. second
  264. third

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jquery chains
$('li').css("color", "green").css("font-size", "16px");
pending…
jquery "loop"
$('li').css({
  "color": "green",
  "font-size": "16px"
});
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:

0 comments

Add a comment