A number of benchmarks that compare the performance of different Rust math libraries for common game development and graphics tasks.
mathbench is written by the author of
glam and has been used to
compare the performance of
glam with other similar 3D math libraries targeting
games and graphics development, including:
All benchmarks are performed using Criterion.rs.
euler bench- performs an Euler integration on arrays of 2D and 3D vectors
mat benches- performs common matrix operations such as transpose, inverse, determinant and multiply
quat benches- peform common quaternion operations
transform bench- performs transformations on vectors
nalgebra matrix inverse methods return an
glam does not, giving glam a performance advantage. If a
non-invertible matrix is inverted by
glam the result will be invalid (it will
- Validate the correctness of each benchmark
- Add more benchmarks
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contributions in any form (issues, pull requests, etc.) to this project must adhere to Rust's Code of Conduct.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
If you are interested in contributing or have a request or suggestion create an issue on github.