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:
parent
71b2e0627c
commit
e8d948a3d2
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue