test

JavaScript performance comparison

Revision 393 of this test case created by

Preparation code

<div id="term"></div>

<script>
var node = document.getElementById('term')
</script>
    

Preparation code output

<div id="term"></div>

Test runner

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

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
createl
    node.innerHTML = '';
    var line, char, wrap;
    wrap = document.createElement("div");
    for (var y = 0; y < 50; y++) {
      line = document.createElement("div");
      for (var x = 0; x < 160; x++) {
        char = document.createElement("span");
        char.textContent = "#";
        line.appendChild(char);
      }
      wrap.appendChild(line);
    }
    node.appendChild(wrap);
pending…
fragment
    node.innerHTML = '';
    var line, char, wrap;
    wrap = document.createDocumentFragment("div");
    for (var y = 0; y < 50; y++) {
      line = document.createElement("div");
      for (var x = 0; x < 160; x++) {
        char = document.createElement("span");
        char.textContent = "#";
        line.appendChild(char);
      }
      wrap.appendChild(line);
    }
    node.appendChild(wrap);
pending…
for loop, cached length
pending…
for loop, reverse
pending…
for loop, cached length, callback
pending…
for loop, cached length, callback.call
pending…
$.each
pending…
for ... in
pending…
for loop, reverse, decrement condition
pending…
for loop, reverse, pre-decrement
pending…
for loop, assignment condition
pending…
for loop, assignment condition, reversed
pending…
for loop, assignment condition, callback
pending…
for loop, assignment condition, callback.call
pending…
forEach2
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.

0 Comments