Vectors

Benchmark created on


Preparation HTML


Setup

var array = [];

function Vec3d(x, y, z) {
	this.x = x;
	this.y = y;
	this.z = z;
}

Teardown

array = [];

Test runner

Ready to run.

Testing in
TestOps/sec
Array
array.push([0, 0, 0]);
ready
Object
array.push({ x: 0, y: 0, z: 0 });
ready
Constructor
array.push(new Vec3d(0, 0, 0));
ready

Revisions

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