Re:How much memory do you need in 2024 to run 1M concurrent ...
by YetAnotherNick on Friday November 29, 2024 @01:45AM
(#42271501)
The fundamental problem is there are two kind of sleep function. One that actually sleeps and other that is a actually a timer that just calls certain callback after a desired interval. Promise is just a syntactic sugar on top of second type. Go certainly could call another function after desired interval using `Timer`.
I think better comparison would be wasting CPU for 10 seconds instead of sleep.
I think better comparison would be wasting CPU for 10 seconds instead of sleep.