push-array-map-entry

JavaScript performance comparison

Test case created

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
two pushes
var arr = ["a", "b", "c", "d"];
arr.push("key");
arr.push("value");
pending…
push pair
var arr = [["a", "b"], ["c", "d"]];
arr.push(["key", "value"]);
pending…
extend 2
var arr = ["a", "b", "c", "d"];
arr2 = new Array(arr.length + 2);
arr2[arr.length] = "key";
arr2[arr.length + 1] = "value";
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. Here’s a list of current revisions for this page:

0 comments

Add a comment