Browse Source

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.
Josh Stone 9 năm trước cách đây
mục cha
commit
e8d948a3d2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      benches/bigint.rs

+ 1 - 1
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();