Array vs object tuple

Benchmark created by Göran Andersson on


Setup

x = 1;
  y = 2;
  z = 3;
  a = 42;
  b = 1337;
  c = 0;
  d = 9;
  e = 7;
  f = 55;

Test runner

Ready to run.

Testing in
TestOps/sec
Array
([ x, y ])
ready
Object
({ x: x, y: y })
ready
Large array
([ x, y, z, a, b, c, d, e, f ])
ready
Large object
({ x: x, y: y, z: z, a: a, b: b, c: c, d: d, e: e, f: f })
ready

Revisions

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