Array of array tuples vs array of objects (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Array of tuples
var a = [];

for (var i = 1e4; i--;) {
 a.push([0, 1]);
}
ready
Array of objects
var a = [];

for (var i = 1e4; i--;) {
 a.push({
  a: 0,
  b: 1
 });
}
ready

Revisions

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