summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-27 14:27:26 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-27 14:27:26 +0200
commit2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499 (patch)
treee8ee4bc5235f56b5f2820c869ea47ba930dd7d4e /contrib
parentc5b6efe0873727ca88c3bcbfbf2c8f692d97400f (diff)
benchmark: collect total time of all crypto ops
Diffstat (limited to 'contrib')
-rw-r--r--contrib/benchmark/collect.awk4
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) {
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;
+ }
}