From f58b6ce60c770a53290b017ecf7d4c407460c365 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 23 Apr 2015 11:33:17 +0100 Subject: [PATCH] Reduce test cycles to speedup tests. --- src/libcryptobox/siphash/siphash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcryptobox/siphash/siphash.c b/src/libcryptobox/siphash/siphash.c index 14e679113..badb6fece 100644 --- a/src/libcryptobox/siphash/siphash.c +++ b/src/libcryptobox/siphash/siphash.c @@ -27,6 +27,7 @@ #include "platform_config.h" extern unsigned long cpu_config; +static const int test_iters = 1000; typedef struct siphash_impl_t { @@ -166,7 +167,7 @@ siphash24_test (bool generic) guchar c[sizeof (guint64)]; } r; - for (cycles = 0; cycles < 100000; cycles ++) { + for (cycles = 0; cycles < test_iters; cycles ++) { for (i = 0; i < sizeof in; ++i) { in[i] = i; -- 2.39.5