From 4e06e1dea7545925e0d52c70ec6522aa48ead9bd Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 27 Sep 2018 15:16:18 +0200 Subject: benchmark: output baseline --- contrib/benchmark/collect.awk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'contrib/benchmark') 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= 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 + } + } } -- cgit v1.2.3