set f32 vs set f64 vs iterate and set f32 vs iterate and set f64 vs iterate and set arrayFastest: set f32 (724.3x faster)
7,803 ops/sec
3,728 ops/sec
11 ops/sec
11 ops/sec
11 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| set f32 | |
| set f64 | |
| iterate and set f32 | |
| iterate and set f64 | |
| iterate and set array |
| Test name | Executions per second |
|---|---|
| ✓ set f32 | 13,260 Ops/sec |
| set f64 | 6,726 Ops/sec |
| iterate and set f32 | 1,443 Ops/sec |
| iterate and set array | 1,431 Ops/sec |
| iterate and set f64 | 1,135 Ops/sec |