|
|
@ -7,11 +7,12 @@ use benchlib::benching::Bencher;
|
|
|
|
pub fn main() {
|
|
|
|
pub fn main() {
|
|
|
|
let mut bencher = Bencher::new();
|
|
|
|
let mut bencher = Bencher::new();
|
|
|
|
bencher
|
|
|
|
bencher
|
|
|
|
.set_iterations(100000000)
|
|
|
|
.set_iterations(1000000)
|
|
|
|
.print_settings()
|
|
|
|
.print_settings()
|
|
|
|
|
|
|
|
.bench("Dry Run", || {})
|
|
|
|
.bench("Multiply to 100", || to_bench::multiply_to(100))
|
|
|
|
.bench("Multiply to 100", || to_bench::multiply_to(100))
|
|
|
|
.bench("Summation from 0u128 to 1000000", || {
|
|
|
|
.bench("Summation from 0u128 to 1000", || {
|
|
|
|
to_bench::summation_to_1000000()
|
|
|
|
to_bench::summation_to_1000()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.set_iterations(1000)
|
|
|
|
.set_iterations(1000)
|
|
|
|
.print_settings()
|
|
|
|
.print_settings()
|
|
|
|