Analysis of different versions of go compilers, pgo debug information and inline and escape analysis information display inline optimization differences
flag information:
-new string new benchmark output file -old string old benchmark output file
use example:
a command like this gets pgo debug information and inline and escape analysis information:
go build -gcflags=all="-d=pgodebug=1 -m" 2> old.txt
diffbench -new /new.txt -old /old.txt
output structare is:
// old inline , but new not inline ......(if have difference) ---------------- // new inline , but old not inline ......(if have difference)