Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
small Array vs TypedArray read performance
(version: 1)
Comparing performance of:
Array read vs TypedArray read
Created:
one month ago
by:
Guest
Jump to the latest result
Script Preparation code:
"use strict"; const arr = new Array(64); for (let i=0; i<64; i++) { arr[i] = i }; const typedArr = new Uint8Array(64); for (let i=0; i<64; i++) { typedArr[i] = i };
Tests:
Array read
"use strict"; let _; for (let i=0, len=arr.length; i<len; i++) { _ = arr[i] };
TypedArray read
"use strict"; let _; for (let i=0, len=typedArr.length; i<len; i++) { _ = typedArr[i] };
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Array read
TypedArray read
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one month ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.5 Safari/605.1.15
Browser/OS:
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Array read
33289174.0 Ops/sec
TypedArray read
32059484.0 Ops/sec
Related benchmarks:
Array vs Typed Array vs Buffer Typed Array
Array vs TypedArray write performance
Array vs TypedArray write performance2
very big Array vs TypedArray write performance
Array vs TypedArray vs f32 write performance
Array vs TypedArray write performance (Int32Array)
Array vs TypedArray write performance (Float64Array)
for loop vs for loop w/ cached array length
small Array vs TypedArray write performance
Comments
Confirm delete:
Do you really want to delete benchmark?