[go-nuts] memory profiler for benchmark test reports 0s across the board

2016-09-19 Thread Dave Cheney
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

[go-nuts] memory profiler for benchmark test reports 0s across the board

2016-09-19 Thread 'Ethan Kennedy' via golang-nuts
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