DEV Community

loading...

Discussion on: Measure function execution time in golang

Collapse
therealkevinard profile image
Kevin Ard

I wrote a similar handler very early in my Go studies out of curiosity. I remember how blown away I was when I first saw decimal microseconds 🤯

Started when I honestly thought I'd made an error - I was sending messages to a rabbit backend and the in rate was orders of magnitude beyond what I expected. Lol thought I was skipping processing or something and spent HOURS step debugging out of distrust 😂

Collapse
rubiin profile image
Rubin Author

same. I was also trying to measure the performance improvements with and without goroutines on a project