aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-09-19 00:24:56 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-09-19 00:24:56 +0200
commita41a4f57bd9a11e9fa8aef512d9dd6abf16939c3 (patch)
tree5fa91cb3cf9165de2d2b9f2dd9c6cfcfc079a538
parentmoretrials (diff)
downloadkbench9000-a41a4f57bd9a11e9fa8aef512d9dd6abf16939c3.tar.xz
kbench9000-a41a4f57bd9a11e9fa8aef512d9dd6abf16939c3.zip
serialize results
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 76328dd..e073705 100644
--- a/main.c
+++ b/main.c
@@ -25,6 +25,7 @@ static int compare_cycles(const void *a, const void *b)
for (j = 0; j < WARMUP; ++j) \
chacha20_ ## name(output, input, len, key, counter); \
for (j = 0; j <= TRIALS; ++j) { \
+ mb(); \
trial_times[j] = get_cycles(); \
chacha20_ ## name(output, input, len, key, counter); \
} \