• 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
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...