Test name | Executions per second |
---|---|
array reverse | 6542864.5 Ops/sec |
typedArray reverse | 7424817.5 Ops/sec |
array i/o | 66043.4 Ops/sec |
typedArray i/o | 68038.9 Ops/sec |
var a = [Array(100)].map(_ => Math.random());
var ta = (new Float64Array(100)).map(_ => Math.random());
a.reverse();
ta.reverse();
for (let i = 0; i < 100; ++i)
a[i] = a[i] + 1;
for (let i = 0; i < 100; ++i)
ta[i] = ta[i] + 1;