[] vs new Array()

Benchmark created on


Preparation HTML

<script>
  var array //to stop memory leak
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
[]
var array = []
ready
new Array()
var array = new Array()
ready

Revisions

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