Re:How much memory do you need in 2024 to run 1M concurrent ...
by fuzzybear3965 on Thursday November 28, 2024 @11:34PM
(#42270831)
Yeah, I think you're wrong. It should only take ~10s. tokio::time::sleep records the time it was called before returning the future [1]. So, all 1 million tasks should be stamped with +/- the same time (within a few milliseconds).
[1]: https://docs.rs/tokio/1.41.1/src/tokio/time/sleep.rs.html#12...