From e8d948a3d24c7eab44684724fd911c3fecf9e8fc Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 6 Jan 2016 18:18:32 -0800 Subject: [PATCH] Reduce the size of the BigUint pow benchmark If a benchmark takes very long to run, it's harder to iterate on changes to see their effect. Even reduced to 100, this pow_bench takes around 8 seconds on my machine, and still shows meaningful optimization effects. --- benches/bigint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benches/bigint.rs b/benches/bigint.rs index cafe93e..055f905 100644 --- a/benches/bigint.rs +++ b/benches/bigint.rs @@ -192,7 +192,7 @@ fn hash(b: &mut Bencher) { #[bench] fn pow_bench(b: &mut Bencher) { b.iter(|| { - let upper = 250_usize; + let upper = 100_usize; for i in 2..upper + 1 { for j in 2..upper + 1 { let i_big = BigUint::from_usize(i).unwrap();