Array direct assignment with initialized array

JavaScript performance comparison

Revision 144 of this test case created by

Preparation code

var array = Array(100);
for(var i = 0; i < 100; i++)
{
  array[i] = "test";
}
    

Preparation code output

var array = Array(100); for(var i = 0; i < 100; i++) { array[i] = "test"; }

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

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

var array = Array(100); for(var i = 0; i < 100; i++) { array[i] = "test"; }