benchmark: there is just one adjusted total
authorFlorian Dold <florian.dold@gmail.com>
Thu, 27 Sep 2018 13:28:30 +0000 (15:28 +0200)
committerFlorian Dold <florian.dold@gmail.com>
Thu, 27 Sep 2018 13:28:30 +0000 (15:28 +0200)
contrib/benchmark/collect.awk

index b88b3dc7da5eab738764defb7910b518c30df0d2..5afa093e2383e798565f50deab1c6e95fb9c801a 100644 (file)
@@ -103,10 +103,8 @@ END {
 
   if (have_baseline) {
     for (x in op) {
-      total_ops_adjusted[x] = op_baseline[x] * op[x]["count"];
-    }
-    for (x in op) {
-      print "total_ops_adjusted_ms", total_ops_adjusted[x];
+      total_ops_adjusted += op_baseline[x] * op[x]["count"];
     }
+    print "total_ops_adjusted_ms", total_ops_adjusted;
   }
 }