]> source.dussan.org Git - rspamd.git/commitdiff
Reduce test cycles to speedup tests.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Apr 2015 10:33:17 +0000 (11:33 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Apr 2015 10:33:17 +0000 (11:33 +0100)
src/libcryptobox/siphash/siphash.c

index 14e679113a347ac96a9ab53e02f6b387e119defd..badb6fece56bc52d0ee10c2073cc32fc7c6f1a9d 100644 (file)
@@ -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;