Inertia is a (WIP) computational mathematics library for Rust.
Inertia-core contains the core functionality of the Inertia crate, providing high-level wrappers for the FLINT, Arb, and Antic C libraries.
The following is just meant to give a VERY rough idea of the performance of Inertia-core vs. standard big integer libraries and is more of a sanity check than anything else. Any feedback or suggestions to improve benchmarking are welcome.
This figure compares big (> 64 bit) integer multiplication times between Inertia-core, the num BigInt
type, and the rug Integer
type.
More precisely, we simply multiply 2^64 by 2^64^x for x = 1, 2, 4, and 8 (exponentiation time is not included in the benchmarks).
Note that rug integers are a high-level wrapper for the GMP library, so the performance comparison here is essentially between num, GMP, and FLINT integer multiplication.