[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: benchmark: update collect s
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: benchmark: update collect script |
Date: |
Thu, 28 Feb 2019 18:29:35 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new e616f14cf benchmark: update collect script
e616f14cf is described below
commit e616f14cf3927bbb3a44171c9d7c3e2389313478
Author: Florian Dold <address@hidden>
AuthorDate: Thu Feb 28 18:28:23 2019 +0100
benchmark: update collect script
---
contrib/benchmark/collect.awk | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/contrib/benchmark/collect.awk b/contrib/benchmark/collect.awk
index 264f2113e..c10191162 100644
--- a/contrib/benchmark/collect.awk
+++ b/contrib/benchmark/collect.awk
@@ -24,8 +24,9 @@
# records are of the following forms:
-# op <op> count <count> time_us <time_us>
-# url <url> status <status> count <count> time_us <time_us> time_us_max
<time_us_max>
+# 1:op 2:<op> 3:count 4:<count> 6:time_us 7:<time_us>
+# 1:url 2:<url> 3:status 4:<status> 5:count 6:<count> 7:time_us 8:<time_us>
9:time_us_max 10:<time_us_max>
+# 11:bytes_sent 12:<bytes_sent> 13:bytes_received 14:<bytes_received>
function abs(v) {
@@ -45,11 +46,15 @@ function abs(v) {
} else if ($1 == "url") {
n = $6;
t = $8;
+ sent = $12
+ recv = $14
url[$2][$4]["count"] += n;
url[$2][$4]["time_us"] += t;
if (n > 0) {
url[$2][$4]["time_us_sq"] += n * (t/n) * (t/n);
}
+ url[$2][$4]["bytes_sent"] += sent;
+ url[$2][$4]["bytes_received"] += recv;
max = url[$2][$4]["time_us_max"];
url[$2][$4]["time_us_max"] = (t/n > max ? t/n : max)
} else if ($1 == "op_baseline") {
@@ -88,7 +93,9 @@ END {
"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"]), \
- "time_us_max", url[x][y]["time_us_max"];
+ "time_us_max", url[x][y]["time_us_max"], \
+ "bytes_sent_avg", avg(url[x][y]["bytes_sent"], url[x][y]["count]),
\
+ "bytes_received_avg", avg(url[x][y]["bytes_received"],
url[x][y]["count]);
}
}
if (total_ops) {
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: benchmark: update collect script,
gnunet <=