Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array vs TypedArray
Array vs TypedArray
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0
Browser:
Firefox 151
Operating system:
Linux
Device Platform:
Desktop
Date tested:
3 days ago
Test name
Executions per second
Array write
9.5 Ops/sec
TypedArray write
13.8 Ops/sec
Tests:
Array write
const a = new Array(0x1fff).fill(0); for(let i = 0; i < 0x1fff; i++) { for(let j = 0; j < 0x1fff; j++) { a[(i ^ j) & 0x1fff] = (i ^ j) & 0xff; } }
TypedArray write
const a = new Uint8Array(0x1fff); for(let i = 0; i < 0x1fff; i++) { for(let j = 0; j < 0x1fff; j++) { a[(i ^ j) & 0x1fff] = (i ^ j) & 0xff; } }