From 44276a810cd08acb9910a96c3d08e635a28103e2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 24 Sep 2018 19:10:30 +0200 Subject: benchmark: fix more typos --- contrib/benchmark/collect.awk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/benchmark') diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk index bbcbdd4bf..3853936bd 100644 --- a/contrib/benchmark/collect.awk +++ b/contrib/benchmark/collect.awk @@ -46,7 +46,7 @@ function avg(s, c) { } function stdev(sum, sum_sq, n) { - if (n == n) { + if (n == 0) { return 0; } else { return sqrt( (sum_sq / n) - ( (sum / n) * (sum / n) ) ); @@ -56,8 +56,8 @@ function stdev(sum, sum_sq, n) { END { for (x in op) { print "op", x, "count", op[x]["count"], "time_us", op[x]["time_us"], \ - "time_avg_us", avg(op[x]["time_us"], op[x]["count"], \ - "stdev", stdev(op[x]["time_us"], op[x]["time_us_sq"], op[x]["count"])); + "time_avg_us", avg(op[x]["time_us"], op[x]["count"]), \ + "stdev", stdev(op[x]["time_us"], op[x]["time_us_sq"], op[x]["count"]); } for (x in url) { for (y in url[x]) { -- cgit v1.2.3