summaryrefslogtreecommitdiff
path: root/contrib/benchmark
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
parent2cdcca273ebad5fcd5ef6f89c7f0e7da4e894499 (diff)
benchmark: output baseline
Diffstat (limited to 'contrib/benchmark')
-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 {
if (total_ops) {
print "total_ops_ms", total_ops;
}
+
+ # Invoke awk with -V baseline_out=<filename> to extract baseline average
+ if (baseline_out) {
+ for (x in op) {
+ print "op_baseline", x, "time_avg_us", avg(op[x]["time_us"], op[x]["count"]) > baseline_out
+ }
+ }
}