summaryrefslogtreecommitdiffhomepage
path: root/tools/bigquery
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2020-12-11 11:24:22 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-11 11:26:42 -0800
commit3c673caf86c83070786a6baec0e92e109bfcbb54 (patch)
tree4e0f593698cc63bc99b7df2cdb80b5a60afcfb7e /tools/bigquery
parentaf4afdc0e0482fd6f4d6d8da77df30527b75e421 (diff)
Fix parser to include iterations.
PiperOrigin-RevId: 347038652
Diffstat (limited to 'tools/bigquery')
-rw-r--r--tools/bigquery/bigquery.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/bigquery/bigquery.go b/tools/bigquery/bigquery.go
index 544af3876..a4ca93ec2 100644
--- a/tools/bigquery/bigquery.go
+++ b/tools/bigquery/bigquery.go
@@ -21,6 +21,7 @@ package bigquery
import (
"context"
"fmt"
+ "strconv"
"strings"
"time"
@@ -109,6 +110,12 @@ func NewBenchmark(name string, iters int) *Benchmark {
return &Benchmark{
Name: name,
Metric: make([]*Metric, 0),
+ Condition: []*Condition{
+ {
+ Name: "iterations",
+ Value: strconv.Itoa(iters),
+ },
+ },
}
}