Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Write Float64Array by index vs Array by index vs Array by push
Test initializing a typed array by index vs generic array by push.
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:152.0) Gecko/20100101 Firefox/152.0
Browser:
Firefox 152
Operating system:
Windows
Device Platform:
Desktop
Date tested:
13 days ago
Test name
Executions per second
Write Float64Array by index
3443.2 Ops/sec
Write generic array by index
5251.9 Ops/sec
Write generic array by push
2442.9 Ops/sec
Tests:
Write Float64Array by index
const tai = new Float64Array(100_000) for (let i = 0; i < 100_000; i++) tai[i] = 3.14
Write generic array by index
const gai = new Array(100_000) for (let i = 0; i < 100_000; i++) gai[i] = 3.14
Write generic array by push
const gap = [] for (let i = 0; i < 100_000; i++) gap.push(3.14)