concat-pop-vs-length

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
concat pop
var array1 = new Array(5000);
var array2 = array1.concat();
var i = array2.length;
while( i-- ) {
array2.pop();
}
pending…
while length
var array1 = new Array(5000);

var i = array1.length;
while( i-- ) {
array1[i];
}
pending…
concat shift
var array1 = new Array(5000);
var array2 = array1.concat();
var i = array2.length;
while( i-- ) {
array2.shift();
}
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