summaryrefslogtreecommitdiffhomepage
path: root/tools/bigquery/bigquery.go
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2021-04-20 13:09:36 -0700
committergVisor bot <gvisor-bot@google.com>2021-04-20 13:11:25 -0700
commit8192cccda61d84f6caaf0a37ee3ba41cb6c4826c (patch)
tree071b1555c40bcd15125758b7c3108cff5cc241be /tools/bigquery/bigquery.go
parentbf1e14cf8a24100fd12292a87e4fc3a439399669 (diff)
Clean test tags.
PiperOrigin-RevId: 369505182
Diffstat (limited to 'tools/bigquery/bigquery.go')
-rw-r--r--tools/bigquery/bigquery.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/bigquery/bigquery.go b/tools/bigquery/bigquery.go
index a4ca93ec2..935154acc 100644
--- a/tools/bigquery/bigquery.go
+++ b/tools/bigquery/bigquery.go
@@ -119,6 +119,14 @@ func NewBenchmark(name string, iters int) *Benchmark {
}
}
+// NewBenchmarkWithMetric creates a new sending to BigQuery, initialized with a
+// single iteration and single metric.
+func NewBenchmarkWithMetric(name, metric, unit string, value float64) *Benchmark {
+ b := NewBenchmark(name, 1)
+ b.AddMetric(metric, unit, value)
+ return b
+}
+
// NewSuite initializes a new Suite.
func NewSuite(name string, official bool) *Suite {
return &Suite{