build: return correct iteration count

Fixes golang/go#19034.

Change-Id: Idfb9d764bb4d8362c9837f6d177f0829a72e1365
Reviewed-on: https://go-review.googlesource.com/37238
Run-TryBot: David Lazar <lazard@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
diff --git a/build/build.go b/build/build.go
index 0841498..4073432 100644
--- a/build/build.go
+++ b/build/build.go
@@ -36,6 +36,7 @@
 func benchmarkOnce() driver.Result {
 	// run 'go build -a'
 	res := driver.MakeResult()
+	res.N = 1
 	cmd := exec.Command("go", "build", "-o", "gobuild", "-a", "-p", os.Getenv("GOMAXPROCS"), "cmd/go")
 	out, err := driver.RunAndCollectSysStats(cmd, &res, 1, "build-")
 	if err != nil {