package
0.0.0-20230812085028-1ac447b6c11d
Repository: https://github.com/momotaro98/go-codes-for-learning.git
Documentation: pkg.go.dev

# README

How to benchmark and investigate allocation stat

Ref link: https://methane.github.io/2015/02/reduce-allocation-in-go-code/

$ go clean; go build -o a.out; rm trace.log; GODEBUG=allocfreetrace=1 ./a.out -test.run=none -test.benchtime=1ms 2>trace.log

go test -cbench_test.goでのバイナリを動かしてGODEBUG=allocfreetrace=1 してもなぜかテストコードの行が出てこない。