aboutsummaryrefslogtreecommitdiff
path: root/contrib/benchmark
diff options
context:
space:
mode:
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 {
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}