From f154da9e12608589e8d5f0508f908a0c3e88a1bb Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Thu, 15 Jan 2015 11:54:00 -0700 Subject: Imported Upstream version 1.4 --- test/bench/garbage/parser.go | 2 +- test/bench/shootout/chameneosredux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/bench') diff --git a/test/bench/garbage/parser.go b/test/bench/garbage/parser.go index d85110b63..a685507c5 100644 --- a/test/bench/garbage/parser.go +++ b/test/bench/garbage/parser.go @@ -85,7 +85,7 @@ func main() { var t0 time.Time var numGC uint32 var pauseTotalNs uint64 - pkgroot := runtime.GOROOT() + "/src/pkg/" + pkgroot := runtime.GOROOT() + "/src/" for pass := 0; pass < 2; pass++ { // Once the heap is grown to full size, reset counters. // This hides the start-up pauses, which are much smaller diff --git a/test/bench/shootout/chameneosredux.go b/test/bench/shootout/chameneosredux.go index 339579862..72ce7dd13 100644 --- a/test/bench/shootout/chameneosredux.go +++ b/test/bench/shootout/chameneosredux.go @@ -123,7 +123,7 @@ func pallmall(cols []int) { fmt.Println(msg) tot := 0 // wait for all results - for _ = range cols { + for range cols { result := <-ended tot += result.met fmt.Printf("%v%v\n", result.met, spell(result.same, true)) -- cgit v1.2.3