Try b.ReportAllocs() before your benchmark loop. That's the easiest way to
benchmark the allocations per operation.
--
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 email
I've got a function that reads `map[string]interface{}` off a channel,
processing each one until that channel is closed. Processing each `map`
entails allocating some slices and other data structures, grouping by like
keys, etc.
I've got a benchmark that reads 1 rows of JSON from a file, un