1ddbee7f37
It's not too rigorous, but thresholds 32 and 256 give me better results. Before: test multiply_0 ... bench: 87 ns/iter (+/- 0) test multiply_1 ... bench: 11,926 ns/iter (+/- 19) test multiply_2 ... bench: 772,178 ns/iter (+/- 3,068) test multiply_3 ... bench: 2,034,237 ns/iter (+/- 9,618) After: test multiply_0 ... bench: 87 ns/iter (+/- 0) test multiply_1 ... bench: 11,927 ns/iter (+/- 64) test multiply_2 ... bench: 672,440 ns/iter (+/- 3,570) test multiply_3 ... bench: 1,577,065 ns/iter (+/- 11,137) |
||
---|---|---|
benches | ||
bigint | ||
ci | ||
complex | ||
derive | ||
doc | ||
integer | ||
iter | ||
macros | ||
rational | ||
src | ||
traits | ||
.gitignore | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md | ||
bors.toml |
README.md
num
A collection of numeric types and traits for Rust.
This includes new types for big integers, rationals, and complex numbers,
new traits for generic programming on numeric properties like Integer
,
and generic range iterators.
Usage
Add this to your Cargo.toml
:
[dependencies]
num = "0.1"
and this to your crate root:
extern crate num;
Compatibility
Most of the num
crates are tested for rustc 1.8 and greater.
The exceptions are num-derive
which requires at least rustc 1.15,
and the deprecated num-macros
which requires nightly rustc.