cmd/bench: run 10 iterations for each bent benchmark For golang/go#49207. Change-Id: I83fa87a603cf26ed61d324975166388db1801487 Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/382097 Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Michael Pratt <mpratt@google.com> Trust: Michael Knyszek <mknyszek@google.com> Run-TryBot: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/cmd/bench/bent.go b/cmd/bench/bent.go index 74471e8..bade299 100644 --- a/cmd/bench/bent.go +++ b/cmd/bench/bent.go
@@ -107,12 +107,16 @@ // Finally we can actually run the benchmarks. // N.B. bent prints the "toolchain" tag to indicate which toolchain is being used. // It's passed to bent via the TOML configuration. - cmd = exec.Command(bentPath, "-C", confFile, "-B", filepath.Join(dir, "benchmarks-50.toml")) + cmd = exec.Command(bentPath, + "-N", "10", + "-C", confFile, + "-B", filepath.Join(dir, "benchmarks-50.toml"), + ) cmd.Dir = dir cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr if err := cmd.Run(); err != nil { - return fmt.Errorf("error running bent -I: %w", err) + return fmt.Errorf("error running bent: %w", err) } return nil }