Re: [go-nuts] Table-driven benchmarks defeat inlining

2021-06-01 Thread Jan Mercl
On Tue, Jun 1, 2021 at 12:29 AM Paul S. R. Chisholm wrote: > P.S.: Out of curiosity, how can I post a message with fancy code examples > like this one? > https://groups.google.com/g/golang-nuts/c/5DgtH2Alt_I/m/hlsqdRSGAgAJ FTR, that's not fancy in my books. Code is best posted to email list

[go-nuts] Table-driven benchmarks defeat inlining

2021-05-31 Thread Paul S. R. Chisholm
This is not a serious problem, but it surprised me. (By the way, how can I post a message with code formatting?) I'd like to create table-driven benchmarks: https://blog.golang.org/subtests. To that end, I started with code from *The Go Programming Language*: // PopCount is based on an examp