diff options
Diffstat (limited to 'src/testing/benchmark.go')
-rw-r--r-- | src/testing/benchmark.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/testing/benchmark.go b/src/testing/benchmark.go index b1c6d2eff0..c033ce5fec 100644 --- a/src/testing/benchmark.go +++ b/src/testing/benchmark.go @@ -5,7 +5,6 @@ package testing import ( - "context" "flag" "fmt" "internal/race" @@ -128,9 +127,6 @@ func (b *B) nsPerOp() int64 { // runN runs a single benchmark for the specified number of iterations. func (b *B) runN(n int) { - b.ctx, b.cancel = context.WithCancel(b.parentContext()) - defer b.cancel() - benchmarkLock.Lock() defer benchmarkLock.Unlock() // Try to get a comparable environment for each run |