diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-27 15:16:18 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-27 15:16:18 +0200 |
commit | 4e06e1dea7545925e0d52c70ec6522aa48ead9bd (patch) | |
tree | ef756cc503dcc721f2eaf1a0f63c6084a13afc2b | |
parent | 2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499 (diff) | |
download | gnunet-4e06e1dea7545925e0d52c70ec6522aa48ead9bd.tar.gz gnunet-4e06e1dea7545925e0d52c70ec6522aa48ead9bd.zip |
benchmark: output baseline
-rw-r--r-- | contrib/benchmark/collect.awk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk index 39bbdf5ac..46ec23d42 100644 --- a/contrib/benchmark/collect.awk +++ b/contrib/benchmark/collect.awk | |||
@@ -88,4 +88,11 @@ END { | |||
88 | if (total_ops) { | 88 | if (total_ops) { |
89 | print "total_ops_ms", total_ops; | 89 | print "total_ops_ms", total_ops; |
90 | } | 90 | } |
91 | |||
92 | # Invoke awk with -V baseline_out=<filename> to extract baseline average | ||
93 | if (baseline_out) { | ||
94 | for (x in op) { | ||
95 | print "op_baseline", x, "time_avg_us", avg(op[x]["time_us"], op[x]["count"]) > baseline_out | ||
96 | } | ||
97 | } | ||
91 | } | 98 | } |