Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Browser:
Chrome 146
Operating system:
Windows
Device Platform:
Desktop
Date tested:
5 months ago
Benchmark engine:
Benchmark.js
Write generic array by index
10K/s
Write Float64Array by index
3K/s
Write generic array by push
958/s
View exact numbers
Test name
Executions per second
✓
Write generic array by index
10,475 Ops/sec
Write Float64Array by index
2,728 Ops/sec
Write generic array by push
958 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)