SIMD uppgiften har gjorts i oscae-raytracer
https://github.com/INDA24PlusPlus/oscae-raytracer
cargo run --release
Med SIMD: 13.1 FPS
Utan SIMD: 11.3 FPS
Siffrorna verkar inte så annorluna men jag tycker att det är en klar märkbar skillnad vid visuell inspektion.
cargo bench
simd_raytracer time: [14.808 ms 14.889 ms 14.985 ms]
change: [-1.1529% -0.3774% +0.4291%] (p = 0.35 > 0.05)
No change in performance detected.
Found 5 outliers among 100 measurements (5.00%)
1 (1.00%) high mild
4 (4.00%) high severe
Benchmarking non_simd_raytracer: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 5.1s, or reduce sample count to 90.
non_simd_raytracer time: [50.797 ms 50.925 ms 51.074 ms]
change: [-0.1109% +0.1806% +0.5350%] (p = 0.29 > 0.05)
No change in performance detected.
Found 4 outliers among 100 measurements (4.00%)
1 (1.00%) high mild
3 (3.00%) high severe