remove children

JavaScript performance comparison

Revision 454 of this test case created by

Preparation code

<div id='wrap'>
<div id='box'></div>
</div>
      
<script>
Benchmark.prototype.setup = function() {
  function write()
  {
   var box = document.getElementById('box');
   for (var i = 0; i < 1000; i++) {
    var div = document.createElement('div');
    div.innerHTML = "halo <br> des <div>aaaa</div><table></table>";
    box.appendChild(div);
   }
  }

};
</script>

Preparation code output

<div id='wrap'> <div id='box'></div> </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

Revisions

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

0 Comments