new array vs literal (v11)

Revision 11 of this benchmark created by gfdsd on


Test runner

Ready to run.

Testing in
TestOps/sec
pre-filled array literal int
var newArray = [1,2]
ready
new Array(length) prefilled with int
var newArray = new Array(1,2)
 
ready
pre-filled array literal int + float
var newArray = [1,.2]
ready
new Array(length) prefilled with int + float
var newArray = new Array(1,.2)
ready

Revisions

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