[PATCH 1/7] Tweak bench-slope parameters
Jussi Kivilinna
jussi.kivilinna at iki.fi
Tue Nov 5 16:57:35 CET 2013
* tests/bench-slope.c (BUF_STEP_SIZE): Half step size to 64.
(NUM_MEASUREMENT_REPETITIONS): Double repetitions to 64.
--
Tweak parameters for better repeatability of results with fast ciphers
(AES-NI).
Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
tests/bench-slope.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/bench-slope.c b/tests/bench-slope.c
index 5687bf1..79b868c 100644
--- a/tests/bench-slope.c
+++ b/tests/bench-slope.c
@@ -55,12 +55,12 @@ static double cpu_ghz = -1;
* (SUPERCOP). */
#define BUF_END_SIZE (BUF_START_SIZE + 4096)
-/* With 128 byte steps, we get (4096)/128 = 32 data points. */
-#define BUF_STEP_SIZE 128
+/* With 128 byte steps, we get (4096)/64 = 64 data points. */
+#define BUF_STEP_SIZE 64
/* Number of repeated measurements at each data point. The median of these
* measurements is selected as data point further analysis. */
-#define NUM_MEASUREMENT_REPETITIONS 32
+#define NUM_MEASUREMENT_REPETITIONS 64
/**************************************************** High-resolution timers. */
More information about the Gcrypt-devel
mailing list