array init

Benchmark created by David on


Test runner

Ready to run.

Testing in
TestOps/sec
new
var array = new Array();
for (var i = 0; i < 100; i++) {
  array[i] = i;
}
ready
obj
var array = [];
for (var i = 0; i < 100; i++) {
  array[i] = i;
}
ready

Revisions

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

  • Revision 1: published by David on