Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Typed array vs normal array
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Browser:
Firefox 136
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Typed array
615.4 Ops/sec
Array
560.4 Ops/sec
Script Preparation code:
let typedarr = new Float32Array(1000000); let array = Array.from({length: 1000000}, () => 0)
Tests:
Typed array
typedarr[0] = Math.random(); for (let i = 2; i < 1000000; i++) { typedarr[i] = typedarr[i - 1] + typedarr[i - 2]; }
Array
array[0] = Math.random(); for (let i = 2; i < 1000000; i++) { array[i] = array[i - 1] + array[i - 2]; }