diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-09-27 15:25:53 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-09-27 15:25:53 +0200 |
commit | f885cf0630c3322cf00a9add64e6bf16bea663bc (patch) | |
tree | d0e26ef028b335fde815bcb0d957d2bf90ef8938 /contrib | |
parent | 4e06e1dea7545925e0d52c70ec6522aa48ead9bd (diff) | |
download | gnunet-f885cf0630c3322cf00a9add64e6bf16bea663bc.tar.gz gnunet-f885cf0630c3322cf00a9add64e6bf16bea663bc.zip |
benchmark: output adjusted total time
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/benchmark/collect.awk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk index 46ec23d42..b88b3dc7d 100644 --- a/contrib/benchmark/collect.awk +++ b/contrib/benchmark/collect.awk | |||
@@ -51,6 +51,11 @@ function abs(v) { | |||
51 | } | 51 | } |
52 | max = url[$2][$4]["time_us_max"]; | 52 | max = url[$2][$4]["time_us_max"]; |
53 | url[$2][$4]["time_us_max"] = (t/n > max ? t/n : max) | 53 | url[$2][$4]["time_us_max"] = (t/n > max ? t/n : max) |
54 | } else if ($1 == "op_baseline") { | ||
55 | # take average time for operations from baseline values with format: | ||
56 | # op_baseline <opname> time_avg_us <t> | ||
57 | op_baseline[$2] = $4; | ||
58 | have_baseline = 1; | ||
54 | } | 59 | } |
55 | } | 60 | } |
56 | 61 | ||
@@ -95,4 +100,13 @@ END { | |||
95 | print "op_baseline", x, "time_avg_us", avg(op[x]["time_us"], op[x]["count"]) > baseline_out | 100 | print "op_baseline", x, "time_avg_us", avg(op[x]["time_us"], op[x]["count"]) > baseline_out |
96 | } | 101 | } |
97 | } | 102 | } |
103 | |||
104 | if (have_baseline) { | ||
105 | for (x in op) { | ||
106 | total_ops_adjusted[x] = op_baseline[x] * op[x]["count"]; | ||
107 | } | ||
108 | for (x in op) { | ||
109 | print "total_ops_adjusted_ms", total_ops_adjusted[x]; | ||
110 | } | ||
111 | } | ||
98 | } | 112 | } |