projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5b6efe
)
benchmark: collect total time of all crypto ops
author
Florian Dold
<florian.dold@gmail.com>
Thu, 27 Sep 2018 12:27:26 +0000
(14:27 +0200)
committer
Florian Dold
<florian.dold@gmail.com>
Thu, 27 Sep 2018 12:27:26 +0000
(14:27 +0200)
contrib/benchmark/collect.awk
patch
|
blob
|
history
diff --git
a/contrib/benchmark/collect.awk
b/contrib/benchmark/collect.awk
index b1e5977fd03be5859429fa9504ea7004b24b8789..39bbdf5ac65ad781c257388ab0472672039ac41b 100644
(file)
--- a/
contrib/benchmark/collect.awk
+++ b/
contrib/benchmark/collect.awk
@@
-40,6
+40,7
@@
function abs(v) {
if (n > 0) {
op[$2]["time_us_sq"] += n * (t/n) * (t/n);
}
+ total_ops += t;
} else if ($1 == "url") {
n = $6;
t = $8;
@@
-84,4
+85,7
@@
END {
"time_us_max", url[x][y]["time_us_max"];
}
}
+ if (total_ops) {
+ print "total_ops_ms", total_ops;
+ }
}