Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Float32 vs Float64 vs Array only iterate
(version: 1)
Comparing performance of:
iterate and set f32 vs iterate and set f64 vs iterate and set array
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
var length = 1e6; var f32_a = Float32Array.from({length}, Math.random); var f32_b = Float32Array.from({length}, Math.random); var f64_a = Float64Array.from({length}, Math.random); var f64_b = Float64Array.from({length}, Math.random); var arr_a = Array.from({length}, Math.random); var arr_b = Array.from({length}, Math.random);
Tests:
iterate and set f32
for (let i = 0; i < length; i++) { f32_a[i] = f32_b[i]; }
iterate and set f64
for (let i = 0; i < length; i++) { f64_a[i] = f64_b[i]; }
iterate and set array
for (let i = 0; i < length; i++) { arr_a[i] = arr_b[i]; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
iterate and set f32
iterate and set f64
iterate and set array
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
6 months ago
)
User agent:
Mozilla/5.0 (Android 13; Mobile; rv:139.0) Gecko/139.0 Firefox/139.0
Browser/OS:
Firefox Mobile 139 on Android
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
iterate and set f32
569.8 Ops/sec
iterate and set f64
572.4 Ops/sec
iterate and set array
295.0 Ops/sec
Related benchmarks:
array vs Float64Array
array vs Float64Array vs Float32Array
array vs Float64Array (small)
Array vs Float32Array vs Float64Array multiplication
Float32 vs Float64
Float32 vs Float64 vs Array
TypedArray performance
Float64 vs Array
array vs Float32Array
Comments
Confirm delete:
Do you really want to delete benchmark?