diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-02-18 21:50:32 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-02-18 21:50:32 +0000 |
commit | 3c6f6602c7bf3fb7a2f58764157dc81d0034382d (patch) | |
tree | 7259e612a4c6d52deb407f4f0b22a82b9945307b /src/util/perf_crypto_hash.c | |
parent | c18cf09343b3c8a18781a04db4b9a6f41e2fdbf8 (diff) | |
download | gnunet-3c6f6602c7bf3fb7a2f58764157dc81d0034382d.tar.gz gnunet-3c6f6602c7bf3fb7a2f58764157dc81d0034382d.zip |
gaugering
Diffstat (limited to 'src/util/perf_crypto_hash.c')
-rw-r--r-- | src/util/perf_crypto_hash.c | 3 |
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 | ||
31 | static void | 32 | static void |
32 | perfHash () | 33 | perfHash () |
@@ -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 | ||