Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
array vs Float32Array
(version: 1)
Comparing performance of:
array reverse vs typedArray reverse vs array i/o vs typedArray i/o
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
var a = [...Array(1000)].map(_ => Math.random()); var ta = (new Float32Array(1000)).map(_ => Math.random());
Tests:
array reverse
a.reverse();
typedArray reverse
ta.reverse();
array i/o
for (let i = 0; i < 10000; ++i) a[i] = a[i] + 1;
typedArray i/o
for (let i = 0; i < 10000; ++i) ta[i] = ta[i] + 1;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
array reverse
typedArray reverse
array i/o
typedArray i/o
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
3 months ago
)
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Mobile Safari/537.36
Browser/OS:
Chrome Mobile 144 on Android
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
array reverse
1213040.2 Ops/sec
typedArray reverse
2782702.0 Ops/sec
array i/o
24271.9 Ops/sec
typedArray i/o
31797.6 Ops/sec
Related benchmarks:
array vs Float64Array
array vs int32Array
array vs Float64Array write performance
array vs Float64Array vs Float32Array
Ringbuffer array vs Float64Array
array vs Float64Array (small)
array vs Float64Array with floats
array vs Float64Array vs mixed array
TypedArray performance
Comments
Confirm delete:
Do you really want to delete benchmark?