[go-nuts] How to call test/benchmark code from main

2016-08-06 Thread Dave Cheney
Those benchmarks don't iterate over b.N (which will be zero in your example) so are not going to give reliable results. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an em

[go-nuts] How to call test/benchmark code from main

2016-08-06 Thread Tong Sun
I know that golang test/benchmark code are invoked by `go test`, but I'm wondering how I can invoke them explicitly in my own main() function? The reason I'm asking is that for those packages that don't provide any sample code, their test code is the closest thing I can dipped into to turn them