From 10127907f589bee5ffc5b9f433a6c6c54e337130 Mon Sep 17 00:00:00 2001 From: Nicolas Kirchner Date: Thu, 3 Aug 2017 18:30:09 +0200 Subject: [PATCH] Add a bench for bigint multiply This bench allows to see the increase of time if we double the size of one of the operands. --- benches/bigint.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/benches/bigint.rs b/benches/bigint.rs index 30522d5..0eafb93 100644 --- a/benches/bigint.rs +++ b/benches/bigint.rs @@ -78,6 +78,11 @@ fn multiply_2(b: &mut Bencher) { multiply_bench(b, 1 << 16, 1 << 16); } +#[bench] +fn multiply_3(b: &mut Bencher) { + multiply_bench(b, 1 << 16, 1 << 17); +} + #[bench] fn divide_0(b: &mut Bencher) { divide_bench(b, 1 << 8, 1 << 6);