aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-24 19:30:55 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-24 19:30:55 +0200
commit11abc0ca801911ab584798d95f7c955933050226 (patch)
treeac3e48fee67a76f259945560fa8780aa405890a2 /contrib
parent58a12be5d2843d76c185d93c690a8e6d835824fc (diff)
downloadgnunet-11abc0ca801911ab584798d95f7c955933050226.tar.gz
gnunet-11abc0ca801911ab584798d95f7c955933050226.zip
benchmark: ugh, fix stdev again
Diffstat (limited to 'contrib')
-rw-r--r--contrib/benchmark/collect.awk8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk
index 12ece0ebf..b91a978b6 100644
--- a/contrib/benchmark/collect.awk
+++ b/contrib/benchmark/collect.awk
@@ -31,13 +31,17 @@
31 t = $6; 31 t = $6;
32 op[$2]["count"] += n; 32 op[$2]["count"] += n;
33 op[$2]["time_us"] += t; 33 op[$2]["time_us"] += t;
34 op[$2]["time_us_sq"] += n * (t/n) * (t/n); 34 if (n > 0) {
35 op[$2]["time_us_sq"] += n * (t/n) * (t/n);
36 }
35 } else if ($1 == "url") { 37 } else if ($1 == "url") {
36 n = $6; 38 n = $6;
37 t = $8; 39 t = $8;
38 url[$2][$4]["count"] += n; 40 url[$2][$4]["count"] += n;
39 url[$2][$4]["time_us"] += t; 41 url[$2][$4]["time_us"] += t;
40 url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n); 42 if (n > 0) {
43 url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n);
44 }
41 } 45 }
42} 46}
43 47