3 ms·
So the argument is “if you measure something completely different from and unrelated to the article you do not get the same result”? I guess that’s true. And
by masklinn 2y ago
So the argument is “if you measure something completely different from and unrelated to the article you do not get the same result”?
I guess that’s true.
And to be clear, I do agree with the top comment (which seems to be by you), TFA uses timers in the other runtimes and go does have timers so using goroutines is unwarranted and unfair. And I said as much a few comment up (although I’d forgotten about AfterFunc so I’d have looped and waited on timer.After which would still have been a pessimisation).
And after thinking more about it the article is in also outright lying: technically it’s only measuring tasks in Go, timers are futures / awaitables but they’re not tasks: they’re not independently scheduled units of work, and are pretty much always special cased by runtimes.
- deleted 2y ago[deleted]