Literal vs. constructor Array

Benchmark created by James Padolsey on


Test runner

Ready to run.

Testing in
TestOps/sec
Literal
[];[];[];[];[];
ready
Constructor with new operator
new Array;
new Array;
new Array;
new Array;
new Array;
ready
Constructor without new operator
Array();
Array();
Array();
Array();
Array();
ready

Revisions

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

  • Revision 1: published by James Padolsey on
  • Revision 2: published on
  • Revision 4: published by Marek Pawłowski on