benchmark: collect total time of all crypto ops
authorFlorian Dold <florian.dold@gmail.com>
Thu, 27 Sep 2018 12:27:26 +0000 (14:27 +0200)
committerFlorian Dold <florian.dold@gmail.com>
Thu, 27 Sep 2018 12:27:26 +0000 (14:27 +0200)
contrib/benchmark/collect.awk

index b1e5977fd03be5859429fa9504ea7004b24b8789..39bbdf5ac65ad781c257388ab0472672039ac41b 100644 (file)
@@ -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;
+  }
 }