3 ms·
generally speaking, the advantage of async io is strongest for high performance server applications, especially in regards to the cpu usage required relative to
by jstrong 6y ago
generally speaking, the advantage of async io is strongest for high performance server applications, especially in regards to the cpu usage required relative to the amount of io stuff you can do. with that in mind, "users running your application on laptops" would not be the most common case.
- bzbarsky 6y agoYes, if your app is a high performance server app, measure in that environment. But user-facing apps (the sort people run on laptops, say) have async I/O as table stakes, really. It's not even about throughput or CPU cycles: it's about the fact that if you have I/O latency on any thread the user interacts with the user experience will be terrible. Now in practice maybe that means "just make the I/O async, but the performance details of that don't really matter too much". Anyway, the overall comment was about performance profiling in general, not just async I/O.