array push

JavaScript performance comparison

Test case created by dhiraj

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
indivitual push
var reqArray = {"tt-xml":[]};

reqArray["tt-xml"].push({"num": 1,"parent": 0})
reqArray["tt-xml"].push({"num": 2,"parent": 1})
reqArray["tt-xml"].push({"num": 4,"parent": 1})
pending…
combined push
var reqArray = {"tt-xml":[]};
reqArray["tt-xml"].push({"num": 1,"parent": 0},
                        {"num": 2,"parent": 1},
                        {"num": 4,"parent": 1});
pending…

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

Compare results of other browsers

0 comments

Add a comment