]> Cypherpunks.ru repositories - gostls13.git/commit
testing: remove claim that b.Run is safe for concurrent use
authorRuss Cox <rsc@golang.org>
Wed, 29 Nov 2017 21:31:47 +0000 (16:31 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 1 Dec 2017 00:24:53 +0000 (00:24 +0000)
commitf3b24b9f0766351fc8b3d43c4ea03f948a460e75
tree47d98813a65eabd79410b9a278f6782ebcd83c2f
parent301b127a058c9bf3859e2a8c49e1ffc3c3398077
testing: remove claim that b.Run is safe for concurrent use

It's not safe (it crashes), and it's also useless: if you run
multiple benchmarks in parallel you will not get reliable
timing results from any of them.

Fixes #18603.

Change-Id: I00e5a72f7c98151543cf7d5573c38383276e391a
Reviewed-on: https://go-review.googlesource.com/80841
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/benchmark.go