array_test

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
first
var arr = [];
for(var i = 0; i < 10000; i+=1){
arr.push(i);
}
for(var i = 0, l = arr.length; i < l; i+=1){
arr[i];
}
pending…
last
var arr = [];
for(var i = 0; i < 10000; i+=1){
arr.push(i);
}
for(var i = arr.length - 1; i >= 0 ; i-=1){
arr[i];
}
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