• Dave Cheney's avatar
    time: add Now()/UnixNano() malloc tests · 1e9ab9e7
    Dave Cheney authored
    The fix for issue 4403 may include more calls to time.Now().UnixNano(). I was concerned that if this function allocated it would cause additional garbage on the heap. It turns out that it doesn't, which is a nice surprise.
    
    Also add benchmark for Now().UnixNano()
    
    R=bradfitz, minux.ma
    CC=golang-dev
    https://golang.org/cl/6849097
    1e9ab9e7
Name
Last commit
Last update
..
example_test.go Loading commit data...
format.go Loading commit data...
internal_test.go Loading commit data...
sleep.go Loading commit data...
sleep_test.go Loading commit data...
sys_plan9.go Loading commit data...
sys_unix.go Loading commit data...
sys_windows.go Loading commit data...
tick.go Loading commit data...
tick_test.go Loading commit data...
time.go Loading commit data...
time_test.go Loading commit data...
zoneinfo.go Loading commit data...
zoneinfo_plan9.go Loading commit data...
zoneinfo_read.go Loading commit data...
zoneinfo_unix.go Loading commit data...
zoneinfo_windows.go Loading commit data...