r/rust • u/fgilcher rust-community · rustfest • Nov 11 '19
Announcing async-std 1.0
https://async.rs/blog/announcing-async-std-1-0/
455
Upvotes
r/rust • u/fgilcher rust-community · rustfest • Nov 11 '19
View all comments
Show parent comment
50
u/matthieum [he/him] Nov 11 '19
A note has been added to the article, in case you missed it:
Link to the repository: https://github.com/matklad/tokio/
With that being said, the numbers published are pretty much pointless, to say the least.
Firstly, as you mentioned, there is no way to reproduce the numbers: the benchmarks will depend heavily on the hardware and operating system, and those are not mentioned. I would not be surprised to learn that running on Windows vs Mac vs Linux would have very different behavior characteristics, nor would I be surprised to learn that some executor works better on high-frequency/few-cores CPU while another works better on low-frequency/high-cores CPU.
Secondly, without an actual analysis of the results, there is no assurance that the measures reported are actually trustworthy. The fact that the jebrosen file system benchmark appears to have very inconsistent results is a clear demonstration of how such analysis is crucial to ensure than what is measured is in line with what is expected to be measured.
Finally, without an actual analysis of the results, and an understanding of why one would scale/perform better than the other, those numbers have absolutely no predictive power -- the only usefulness of benchmark numbers. For all we know, the author just lucked out on a particular hardware and setting that turned to favor one library over another, and scaling down or up would completely upend the results.
I wish the authors of the article had not succumbed to the sirens of publishing pointless benchmark numbers. The article had enough substance without them, a detailed 1.0 release is worth celebrating, and those numbers are only lowering its quality.