new Array() vs literal (v2)

Revision 2 of this benchmark created on


Description

compare JavaScript new Array() v/s literal

Test runner

Ready to run.

Testing in
TestOps/sec
new Array()
var a = new Array();
ready
Literal
var a = [];
ready
new Array(x)
var a = new Array(10);
ready

Revisions

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