You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go test always runs the tests first before any benchmarks. If you want to prevent tests from running you can do something like go test -run=^$ -bench=Benchmark_1
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.10.1
Does this issue reproduce with the latest release?
YES
What operating system and processor architecture are you using (
go env
)?What did you do?
to run:
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
What did you expect to see?
What did you see instead?
[chain33@localhost ~]$ go test -bench=Benchmark_1
When I specify benchmarks function name,why does Test_1, Test_2, Benchmark_1 run?
The text was updated successfully, but these errors were encountered: