From: Christian Grothoff Date: Fri, 18 Feb 2011 21:50:32 +0000 (+0000) Subject: gaugering X-Git-Tag: initial-import-from-subversion-38251~19095 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3c6f6602c7bf3fb7a2f58764157dc81d0034382d;p=oweals%2Fgnunet.git gaugering --- 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; }