diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-27 14:27:26 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-27 14:27:26 +0200 |
commit | 2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499 (patch) | |
tree | e8ee4bc5235f56b5f2820c869ea47ba930dd7d4e /contrib/benchmark | |
parent | c5b6efe0873727ca88c3bcbfbf2c8f692d97400f (diff) | |
download | gnunet-2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499.tar.gz gnunet-2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499.zip |
benchmark: collect total time of all crypto ops
Diffstat (limited to 'contrib/benchmark')
-rw-r--r-- | contrib/benchmark/collect.awk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk index b1e5977fd..39bbdf5ac 100644 --- a/contrib/benchmark/collect.awk +++ b/contrib/benchmark/collect.awk | |||
@@ -40,6 +40,7 @@ function abs(v) { | |||
40 | if (n > 0) { | 40 | if (n > 0) { |
41 | op[$2]["time_us_sq"] += n * (t/n) * (t/n); | 41 | op[$2]["time_us_sq"] += n * (t/n) * (t/n); |
42 | } | 42 | } |
43 | total_ops += t; | ||
43 | } else if ($1 == "url") { | 44 | } else if ($1 == "url") { |
44 | n = $6; | 45 | n = $6; |
45 | t = $8; | 46 | t = $8; |
@@ -84,4 +85,7 @@ END { | |||
84 | "time_us_max", url[x][y]["time_us_max"]; | 85 | "time_us_max", url[x][y]["time_us_max"]; |
85 | } | 86 | } |
86 | } | 87 | } |
88 | if (total_ops) { | ||
89 | print "total_ops_ms", total_ops; | ||
90 | } | ||
87 | } | 91 | } |