summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-26 15:35:33 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-26 15:35:33 +0200
commite67f1331d12caef3731a41700deb89bd44f1cf3d (patch)
treec97c2bc2553ee23847f5f623a8c37721565ac490 /contrib
parent99ba49914858c3af26e8fb6cd765af607ea178d9 (diff)
benchmark: collect max
Diffstat (limited to 'contrib')
-rw-r--r--contrib/benchmark/collect.awk7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk
index 159e4897a..c4de209f9 100644
--- a/contrib/benchmark/collect.awk
+++ b/contrib/benchmark/collect.awk
@@ -24,7 +24,7 @@
# records are of the following forms:
# op <op> count <count> time_us <time_us>
-# url <url> status <status> count <count> time_us <time_us>
+# url <url> status <status> count <count> time_us <time_us> time_us_max <time_us_max>
function abs(v) {
@@ -48,6 +48,8 @@ function abs(v) {
if (n > 0) {
url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n);
}
+ max = url[$2][$4]["time_us_max];
+ url[$2][$4]["time_us_max] = (t > max ? t : max)
}
}
@@ -78,7 +80,8 @@ END {
print "url", x, "status", y, \
"count", url[x][y]["count"], "time_us", url[x][y]["time_us"], \
"time_avg_us", avg(url[x][y]["time_us"], url[x][y]["count"]), \
- "stdev", stdev(url[x][y]["time_us"], url[x][y]["time_us_sq"], url[x][y]["count"]);
+ "stdev", stdev(url[x][y]["time_us"], url[x][y]["time_us_sq"], url[x][y]["count"]), \
+ "time_us_max", url[x][y]["time_us_max"];
}
}
}