Array vs Object (v2)

Revision 2 of this benchmark created on


Setup

var Store = [];

Test runner

Ready to run.

Testing in
TestOps/sec
Array
Store.push([ 0, 1, 2 ]);
ready
Numbered Object
Store.push({ 0: 0, 1: 1, 2: 2 });
ready
Numbered Object (string)
Store.push({ "0": 0, "1": 1, "2": 2 });
ready
Standard Object
Store.push({ x: 0, y: 1, z: 2 });
ready
Standard Object (string)
Store.push({ "x": 0, "y": 1, "z": 2 });
ready

Revisions

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