What has been changed? And since when? I may need dig into it for more detail.
I've tested on both 1.10 and devel +65c365bf0f Wed May 23 23:51:30 2018 +0000 linux/amd64, the result is the same (slow). On Thursday, May 24, 2018 at 4:37:47 PM UTC+8, Jakob Borg wrote: > > Are you using the latest version of Go? time.Now() has been optimized > recently. > > On 24 May 2018, at 10:08, ra...@gmail.com <javascript:> wrote: > > I been working on something performance intensive lately, one feature of > it require me to calculate the time gap between operation which require > time.Now to make time marks. > > After I benchmark time.Now on my computer, I found that the time.Now > takes about 3758 ns to perform one operation, which is not very fast. The > benchmark is here > <https://gist.github.com/reinit/82608ab20e5aac3bd3c1eb5a8f78d23c> > (benchmarked on my Ubuntu 18.04 LTS machine). > > So, I want to know is that normal to be this slow? If it is (slow), then > does there is an alternative way to to that? > > Thank you! > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.