Posted in

Go时间函数性能对比实录:time.Now() vs runtime.nanotime() vs syscall.Gettimeofday(),第3种快2.8倍但99%人不敢用

第一章:Go时间函数性能对比实录 … Go时间函数性能对比实录:time.Now() vs runtime.nanotime() vs syscall.Gettimeofday(),第3种快2.8倍但99%人不敢用Read more

Posted in

Go语言做的程序是什么:为什么pprof CPU profile能精准到ns级?揭秘runtime·nanotime调用链与VDSO协同机制

第一章:Go语言做的程序是什么 … Go语言做的程序是什么:为什么pprof CPU profile能精准到ns级?揭秘runtime·nanotime调用链与VDSO协同机制Read more

Posted in

Go底层函数避坑指南,12个生产环境血泪案例揭示runtime.nanotime、sync/atomic.LoadUint64等高频误用陷阱

第一章:Go底层函数避坑指南总览 … Go底层函数避坑指南,12个生产环境血泪案例揭示runtime.nanotime、sync/atomic.LoadUint64等高频误用陷阱Read more