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.
This commit is contained in:
Nicolas Kirchner 2017-08-03 18:30:09 +02:00
parent cbdaf8f6f9
commit 10127907f5
1 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,11 @@ fn multiply_2(b: &mut Bencher) {
multiply_bench(b, 1 << 16, 1 << 16); multiply_bench(b, 1 << 16, 1 << 16);
} }
#[bench]
fn multiply_3(b: &mut Bencher) {
multiply_bench(b, 1 << 16, 1 << 17);
}
#[bench] #[bench]
fn divide_0(b: &mut Bencher) { fn divide_0(b: &mut Bencher) {
divide_bench(b, 1 << 8, 1 << 6); divide_bench(b, 1 << 8, 1 << 6);