pre-allocated arrays 2

JavaScript performance comparison

Revision 5 of this test case created by vincent piel

Preparation code

Benchmark.prototype.setup = function() {
    var arr = null;

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
PA 100K
var arr = new Array(100000);
PA 100K-1
var arr = new Array(99999);

Compare results of other browsers


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:


Comment form temporarily disabled.

Add a comment