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.
This commit is contained in:
Josh Stone 2016-01-06 18:18:32 -08:00
parent 71b2e0627c
commit e8d948a3d2
1 changed files with 1 additions and 1 deletions

View File

@ -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();