ae d2 56 2a e2 36 a3 d3 52 74

JavaScript performance comparison

Test case created

Preparation code

  <ul id="myList">
    <li>One</li>
    <li>Two</li>
    <li>Three</li>
    <li>Four</li>
    <li>Five</li>
  </ul>

Preparation code output

  • One
  • Two
  • Three
  • Four
  • Five

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
querySelectorAll
li = document.querySelectorAll('#myList > li');
pending…
getElementById
li = document.getElementById('myList').children;
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