Array Object vs Array Literal

Benchmark created by Joe on


Test runner

Ready to run.

Testing in
TestOps/sec
Object
var num = 100000
var foo = []

while(--num){
foo.push(Array())
}
 
ready
Literal
var num = 100000
var foo = []

while(--num){
foo.push([])
}
 
ready

Revisions

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