aboutsummaryrefslogtreecommitdiff
path: root/contrib/benchmark/collect.awk
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-27 15:16:18 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-27 15:16:18 +0200
commit4e06e1dea7545925e0d52c70ec6522aa48ead9bd (patch)
treeef756cc503dcc721f2eaf1a0f63c6084a13afc2b /contrib/benchmark/collect.awk
parent2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499 (diff)
downloadgnunet-4e06e1dea7545925e0d52c70ec6522aa48ead9bd.tar.gz
gnunet-4e06e1dea7545925e0d52c70ec6522aa48ead9bd.zip
benchmark: output baseline
Diffstat (limited to 'contrib/benchmark/collect.awk')
-rw-r--r--contrib/benchmark/collect.awk7
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}