Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array vs TypedArray
(version: 1)
Array vs TypedArray
Comparing performance of:
Array write vs TypedArray write
Created:
3 days ago
by:
Guest
Jump to the latest result
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; } }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array write
TypedArray write
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
3 days ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0
Browser/OS:
Firefox 151 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Array write
9.5 Ops/sec
TypedArray write
13.8 Ops/sec
Comments
Confirm delete:
Do you really want to delete benchmark?