49529895a2
Before: test fac_to_string ... bench: 18,183 ns/iter (+/- 310) test fib_to_string ... bench: 819 ns/iter (+/- 8) test to_str_radix_02 ... bench: 204,479 ns/iter (+/- 2,826) test to_str_radix_08 ... bench: 68,275 ns/iter (+/- 769) test to_str_radix_10 ... bench: 61,809 ns/iter (+/- 907) test to_str_radix_16 ... bench: 51,438 ns/iter (+/- 539) test to_str_radix_36 ... bench: 39,939 ns/iter (+/- 976) After: test fac_to_string ... bench: 1,204 ns/iter (+/- 16) test fib_to_string ... bench: 269 ns/iter (+/- 3) test to_str_radix_02 ... bench: 2,428 ns/iter (+/- 80) test to_str_radix_08 ... bench: 820 ns/iter (+/- 38) test to_str_radix_10 ... bench: 2,984 ns/iter (+/- 303) test to_str_radix_16 ... bench: 689 ns/iter (+/- 25) test to_str_radix_36 ... bench: 7,995 ns/iter (+/- 100) |
||
---|---|---|
.travis | ||
benches | ||
doc | ||
num-macros | ||
src | ||
.gitignore | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
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;