typedarray vs array

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
typedarray
const L = [];
for (let i = 0; i < 1000; i++)
	L.push(new Float32Array(16));
ready
array fill
const L = [];
for (let i = 0; i < 1000; i++)
	L.push(Array(16).fill(0));

ready
array direct
const L = [];
for (let i = 0; i < 1000; i++)
	L.push([0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0]);
ready

Revisions

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