I use make file to run
go test -race // it tooks long time
go test -bench . // I wish it run only benchmark, but failed.
(google solution was -flag xxx_test.go, but after Go 1.0.3, it can not work)
BTW, another problem of running benchmark testing is:
I'm trying to benchmark how fast my clients can connect to server?
If the connection count (B.N) range in about 200, it will work. (system limited).
So, -benchtime 0.1s // workable
But default -benchtime 1s will failed, because it will try to open too much file handles.
I think it is proper to add a benchmark flag (-test.benchMaxN to limit the B.N valid range)