Switch branches/tags
Nothing to show
Find file History
Veniamin Ilmer
Latest commit b08c042 Dec 22, 2018
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Fixed cargo.toml versioning. Dec 22, 2018
_num_bigint.rs Update and rename benches/bigint_multiplication/_num_bigint.rs to ben… Dec 17, 2018
_numext_fixed_uint.rs Fixed recent changes. Dec 17, 2018
_uint.rs Fixed recent changes. Dec 17, 2018
bench.rs Addressed #5 more or less. Dec 18, 2018

README.md

bigint_arithmetic

Multiplying numbers larger than what's possible with a normal 64 bit processor.

  • Baseline: Add 1 + 1
  • Fact50: Take the factorial of 50. (Gets up to 256 bits)
  • Fact95: Take the factorial of 95. (Gets up to 512 bits)

Note: We cannot include GMP or unstable crates. GMP can't be included because it is not crossplatform (not available in Windows).

baseline fact50 fact95
num_bigint 0.114 9.864 28.497
numext_fixed_uint 0.008 70.474 423.588
uint 0.016 116.127 902.055

Speed units are in microseconds per iteration. Less is better.

Related Functions

Crate versions

num-bigint = "0.2.2"        # Big integer implementation for Rust
numext-fixed-uint = "0.1.2"     # Fixed-size uint types.
uint = "0.5.0"                     # Large fixed-size integers arithmetics

Compiled on: rustc 1.31.1 (b6c32da9b 2018-12-18)