本代码来自b站up主 原子之音 的 Rust异步io实战
异步的方式统计
cargo build --release --bin async_io
.\target\release\async_io.exe <PATH>
# or
# ./target/release/async_io <PATH>
同步的方式统计
cargo build --release --bin sync_io
.\target\release\sync_io.exe <PATH>
# or
# ./target/release/sync_io <PATH>