Posted in

Go程序启动慢于Java?揭秘go run vs go build的4层初始化开销(runtime.init→main.init→plugin.load→TLS setup)

第一章:Go程序启动慢于Java … Go程序启动慢于Java?揭秘go run vs go build的4层初始化开销(runtime.init→main.init→plugin.load→TLS setup)Read more

Posted in

Fedora上运行go run main.go比go build后执行慢3.8倍?揭秘runtime.GOMAXPROCS默认值在cgroups v2与systemd user session中的继承异常

第一章:Fedora上运行go … Fedora上运行go run main.go比go build后执行慢3.8倍?揭秘runtime.GOMAXPROCS默认值在cgroups v2与systemd user session中的继承异常Read more

Posted in

为什么Linux上go run比go build慢3.8倍?环境配置中未启用GOCACHE与GODEBUG=asyncpreemptoff的真实影响

第一章:Linux上Go语言环境 … 为什么Linux上go run比go build慢3.8倍?环境配置中未启用GOCACHE与GODEBUG=asyncpreemptoff的真实影响Read more