bigint-benchmark-rs
Bechmarks for Rust big integer implementations (by tczajka)
ibig-rs
A big integer library in Rust with good performance. (by tczajka)
bigint-benchmark-rs | ibig-rs | |
---|---|---|
7 | 5 | |
50 | 99 | |
- | - | |
6.2 | 6.5 | |
8 months ago | 6 months ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
bigint-benchmark-rs
Posts with mentions or reviews of bigint-benchmark-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-06.
- How do i store a number there's approximately 740 orders of magnitude larger than an i128?
-
Rust num-biguint slower than python
Consider using a different big int crate if performance is concerned https://github.com/tczajka/bigint-benchmark-rs
-
Multiple precision floating point library
Have you performed benchmarks for this? I imagine it would be nice to have something similar to the big integer benchmarks provided by ibig.
-
Announcing a new big integer crate `bnum`, which uses const generics to allow fixed precision integers of arbitrary size to be stored on the stack. Optional features enable generating random big integers, `serde` compatibility, and making nearly every method `const`.
How does it compare in the bigint benchmark?
-
What's the best library for long number division?
For big integers, ibig has worked well for me. rug requires libc and GMP (which may be a good or bad thing depending on needs), and ramp is no longer maintained. Some other options are mentioned in ibig's handful of benchmarks.
-
How to write really slow Rust code - Part 2
This benchmark indicates that num-bigint has pretty bad performance. It would be interesting if using a GMP wrapper like rug affects the outcome.
-
Best library for multiplication of big unsigned integers
tczajka made a benchmark of the different bigint implementations.
ibig-rs
Posts with mentions or reviews of ibig-rs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-07-24.
-
Multiple precision floating point library
Have you performed benchmarks for this? I imagine it would be nice to have something similar to the big integer benchmarks provided by ibig.
-
Announcing Malachite, a new arbitrary-precision arithmetic library
I'm adding your crate to the bigint benchmark, you can find some results on the PR page.
-
What's the best library for long number division?
rug requires libc and GMP (which may be a good or bad thing depending on needs), and ramp requires nightly and is no longer maintained. For big integers, ibig has worked out for me with other operations, but I haven't looked closely at what its strategy is for division is yet.
-
Best library for multiplication of big unsigned integers
Checkout https://github.com/tczajka/ibig-rs — it’s a pure Rust crate which builds on stable, and is pretty fast.
What are some alternatives?
When comparing bigint-benchmark-rs and ibig-rs you can also consider the following projects:
rust-gmp
rug
gmp-wasm - Fork of the GNU Multiple Precision Arithmetic Library (GMP), suitable for compilation into WebAssembly.
rug - Library for fetching various stock data from the internet (official and unofficial APIs).
Rust-CAS - Rust Computer Algebra library
bnum - Arbitrary, fixed size numeric types that extend the functionality of primitive numeric types in Rust.
crates.io - The Rust package registry
Clippy - A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/