From: Florian Dold Date: Thu, 27 Sep 2018 12:27:26 +0000 (+0200) Subject: benchmark: collect total time of all crypto ops X-Git-Tag: v0.11.0~241^2~21^2~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499;p=oweals%2Fgnunet.git benchmark: collect total time of all crypto ops --- 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) { if (n > 0) { op[$2]["time_us_sq"] += n * (t/n) * (t/n); } + total_ops += t; } else if ($1 == "url") { n = $6; t = $8; @@ -84,4 +85,7 @@ END { "time_us_max", url[x][y]["time_us_max"]; } } + if (total_ops) { + print "total_ops_ms", total_ops; + } }