From 2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 27 Sep 2018 14:27:26 +0200 Subject: benchmark: collect total time of all crypto ops --- contrib/benchmark/collect.awk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/benchmark') 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; + } } -- cgit v1.2.3