Array Object vs Array Literal (v2)

Revision 2 of this benchmark created by JFSIII on


Test runner

Ready to run.

Testing in
TestOps/sec
Object
var num = 100000
var foo = Array()

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.