From 3c6f6602c7bf3fb7a2f58764157dc81d0034382d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 18 Feb 2011 21:50:32 +0000 Subject: gaugering --- src/util/perf_crypto_hash.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util') 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 @@ #include "gnunet_common.h" #include "gnunet_crypto_lib.h" #include "gnunet_time_lib.h" +#include static void perfHash () @@ -59,6 +60,8 @@ main (int argc, char *argv[]) printf ("Hash perf took %llu ms\n", (unsigned long long) GNUNET_TIME_absolute_get_duration (start).rel_value); + GAUGER ("Cryptographic hashing_kb/s", + 1024 * 64 * 1024 / (1+GNUNET_TIME_absolute_get_duration (start).rel_value)); return 0; } -- cgit v1.2.3