From 1048100cd06f9adb5035e38e1c5e3fcce20a5083 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Wed, 4 Apr 2018 10:16:32 -0700 Subject: [PATCH] Reduce benchmark runs --- benches/dalek_benchmarks.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/benches/dalek_benchmarks.rs b/benches/dalek_benchmarks.rs index 81c9056..353f4bf 100644 --- a/benches/dalek_benchmarks.rs +++ b/benches/dalek_benchmarks.rs @@ -13,6 +13,7 @@ extern crate curve25519_dalek; use curve25519_dalek::constants; use curve25519_dalek::scalar::Scalar; +static BATCH_SIZES: [usize; 5] = [1, 2, 4, 8, 16]; static MULTISCALAR_SIZES: [usize; 13] = [1, 2, 4, 8, 16, 32, 64, 128, 256, 384, 512, 768, 1024]; mod edwards_benches { @@ -133,7 +134,7 @@ mod ristretto_benches { .collect(); b.iter(|| RistrettoPoint::double_and_compress_batch(&points)); }, - &MULTISCALAR_SIZES, + &BATCH_SIZES, ); } @@ -186,7 +187,7 @@ mod scalar_benches { Scalar::batch_invert(&mut s); }); }, - &MULTISCALAR_SIZES, + &BATCH_SIZES, ); }