bitshifter / mathbench-rs

Comparing performance of Rust math libraries for common 3D game and graphics tasks
Other
197 stars 16 forks source link

Support for SoA crate types #21

Closed bitshifter closed 3 years ago

bitshifter commented 4 years ago

ultraviolet and now nalgebra has SoA support. They have modifications to mathbench to show performance differences. It would be good to add support for SoA types without pessimising the existing non wide benchmarks. For example ultraviolet changes benches to operate on 4 values, which favours ultraviolet's wide types but isn't very useful if you want to compare performance of the non-wide types. Making use of SoA types requires a lot of transformation of code and it isn't always possible to do efficiently for all algorithms so non-wide performance is still relevant. Benchmarks for both non-wide and wide types would be the best of both worlds I think.

bitshifter commented 4 years ago

Nearly there, just need to actually run benches and update the README.

bitshifter commented 4 years ago

Note to self, nalgebra SoA types require nightly-2020-09-14-x86_64-unknown-linux-gnu as packed_simd is broken for later nightlies.