Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Float32 vs Float64 vs Array only iterate1e5
(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 = 1e5; 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:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser/OS:
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
iterate and set f32
3295.7 Ops/sec
iterate and set f64
3232.3 Ops/sec
iterate and set array
3532.7 Ops/sec
Related benchmarks:
array vs Float64Array vs Float32Array
Array vs Float32Array vs Float64Array multiplication
Float32 vs Float64
Float32 vs Float64 vs Array
TypedArray performance
Float64 vs Array
math on array vs float32array vs float64array - v2
Float32 vs Float64 vs Array only iterate
Float32 vs Float64 vs Array only iterate1e4
Comments
Confirm delete:
Do you really want to delete benchmark?