Posted in

Go time包性能黑箱:为什么time.Now()在虚拟机中比物理机慢3.8倍?(深入vdso clock_gettime vs syscall gettimeofday对比测试)

第一章:Go time包性能黑箱 … Go time包性能黑箱:为什么time.Now()在虚拟机中比物理机慢3.8倍?(深入vdso clock_gettime vs syscall gettimeofday对比测试)Read more

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时间格式化“秒级响应”承诺破灭真相:一次Format调用触发3次syscall.gettimeofday(perf trace实证)

第一章:Go时间格式化“秒级响应 … Go时间格式化“秒级响应”承诺破灭真相:一次Format调用触发3次syscall.gettimeofday(perf trace实证)Read more