pre-allocated arrays (v22)

Revision 22 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
EL 100K-1
var arr = [];
for (var i = 0; i < 99999; i++) arr[i] = i;
ready
PA 100K-1
var arr = new Array(99999);
for (var i = 0; i < 99999; i++) arr[i] = i;
ready
EL 100K
var arr = [];
for (var i = 0; i < 100000; i++) arr[i] = i;
ready
PA 100K
var arr = new Array(100000);
for (var i = 0; i < 100000; i++) arr[i] = i;
ready

Revisions

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