Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array vs TypedArray write performance %%%%%%%%%%%%
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.1 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 26
Operating system:
iOS 18.7
Device Platform:
Mobile
Date tested:
5 months ago
Test name
Executions per second
Array write
10067.6 Ops/sec
TypedArray write
8332.2 Ops/sec
Script Preparation code:
var array = new Array(100000).fill(0).map(_x => 0); var typedArray = new Uint32Array(100000).fill(0);
Tests:
Array write
for (let i=0; i<array.length; i++) { array[i] = array[i] + 1; }
TypedArray write
for (let i=0; i<typedArray.length; i++) { typedArray[i] = typedArray[i] + 1; }