diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-11-02 14:00:27 +0200 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-11-06 19:22:59 +0200 |
commit | 7e98eecc1a955bc253765f92a166b6560f085b8c (patch) | |
tree | 4eb826f29b170fcbf59e790e3eac872cb23376c5 | |
parent | 8e1c0f9b894c39b6554c544208dc000682f520c7 (diff) | |
download | libgcrypt-7e98eecc1a955bc253765f92a166b6560f085b8c.tar.gz |
Tweak bench-slope parameters
* 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@iki.fi>
-rw-r--r-- | tests/bench-slope.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/bench-slope.c b/tests/bench-slope.c index 5687bf1e..79b868ca 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. */ |