From: Vsevolod Stakhov Date: Thu, 23 Apr 2015 10:33:17 +0000 (+0100) Subject: Reduce test cycles to speedup tests. X-Git-Tag: 0.9.0~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f58b6ce60c770a53290b017ecf7d4c407460c365;p=thirdparty%2Frspamd.git Reduce test cycles to speedup tests. --- diff --git a/src/libcryptobox/siphash/siphash.c b/src/libcryptobox/siphash/siphash.c index 14e679113a..badb6fece5 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;