diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-05-06 20:46:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-06 20:46:26 -0400 |
commit | ba5069b3101c24f53718d20c2e267e07509ace03 (patch) | |
tree | 49caac61627ff15ddc12d5905f0c155f8028e49f /src/test/bench.c | |
parent | 4a740451acdd953440312e355baa6837825fa405 (diff) | |
download | tor-ba5069b3101c24f53718d20c2e267e07509ace03.tar.gz tor-ba5069b3101c24f53718d20c2e267e07509ace03.zip |
Remove a spurious variable.
Diffstat (limited to 'src/test/bench.c')
-rw-r--r-- | src/test/bench.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/bench.c b/src/test/bench.c index a3fa7fe319..f6c33626f2 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -343,17 +343,15 @@ bench_siphash(void) char buf[128]; int lens[] = { 7, 8, 15, 16, 20, 32, 111, 128, -1 }; int i, j; - uint64_t total; uint64_t start, end; const int N = 300000; crypto_rand(buf, sizeof(buf)); for (i = 0; lens[i] > 0; ++i) { - total = 0; reset_perftime(); start = perftime(); for (j = 0; j < N; ++j) { - total += siphash24g(buf, lens[i]); + siphash24g(buf, lens[i]); } end = perftime(); printf("siphash24g(%d): %.2f ns per call\n", |