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:
one month ago
TypedArray write
14/s
Array write
9/s
View exact numbers
Test name
Executions per second
✓
TypedArray write
14 Ops/sec
Array write
9 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; } }