gaugering
authorChristian Grothoff <christian@grothoff.org>
Fri, 18 Feb 2011 21:50:32 +0000 (21:50 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 18 Feb 2011 21:50:32 +0000 (21:50 +0000)
src/util/perf_crypto_hash.c

index 579d9afcaa5de5174e22a5b9a4d802e8ce6f1a0e..1446aebaaef5c3d0d99f9e4e1e35a653ac5b94ee 100644 (file)
@@ -27,6 +27,7 @@
 #include "gnunet_common.h"
 #include "gnunet_crypto_lib.h"
 #include "gnunet_time_lib.h"
+#include <gauger.h>
 
 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;
 }