aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/perf_crypto_hash.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/perf_crypto_hash.c b/src/util/perf_crypto_hash.c
index 579d9afca..1446aebaa 100644
--- a/src/util/perf_crypto_hash.c
+++ b/src/util/perf_crypto_hash.c
@@ -27,6 +27,7 @@
27#include "gnunet_common.h" 27#include "gnunet_common.h"
28#include "gnunet_crypto_lib.h" 28#include "gnunet_crypto_lib.h"
29#include "gnunet_time_lib.h" 29#include "gnunet_time_lib.h"
30#include <gauger.h>
30 31
31static void 32static void
32perfHash () 33perfHash ()
@@ -59,6 +60,8 @@ main (int argc, char *argv[])
59 printf ("Hash perf took %llu ms\n", 60 printf ("Hash perf took %llu ms\n",
60 (unsigned long long) 61 (unsigned long long)
61 GNUNET_TIME_absolute_get_duration (start).rel_value); 62 GNUNET_TIME_absolute_get_duration (start).rel_value);
63 GAUGER ("Cryptographic hashing_kb/s",
64 1024 * 64 * 1024 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value));
62 return 0; 65 return 0;
63} 66}
64 67