Empty array

JavaScript performance comparison

Revision 236 of this test case created by

Preparation code


      
      <script>
Benchmark.prototype.setup = function() {
  var arr = [0,1,2,3,4,5,6,7,8,9,10,123,123,123,123,123,123,13,123,2,2,1,2,3,1,2,3,12,31,23,123,2,12,31,23,1,2,3,2,1,2,3,1,2,3,1,2,3,1,2,2,3,14,1,3,2,1,3,2,1,3,3,3,2,2,2,2,2,1,2,3,2,1,2,3,1,2,3];

};
</script>

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
arr = []
arr = [];
pending…
arr = null
arr = null;
pending…
delete arr
delete arr;
pending…
length
arr.length = 0;
pending…

Revisions

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

0 Comments