Skip to content

Rust synchronous Programming benchmarks This comprehensive benchmark suite tests Tokio, async-std, and smol across five key scenarios

Notifications You must be signed in to change notification settings

welsayedaly/rust_async_runtime_benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust synchronous Programming benchmarks

This comprehensive benchmark suite tests Tokio, async-std, and smol across five key scenarios:

Benchmark Categories

  1. Task Spawning - Raw task creation/completion speed

  2. Channel Communication - Message passing between tasks

  3. Timer Operations - Sleep/timeout efficiency

  4. Concurrent Tasks - Performance under high load

  5. TCP Echo Server - Real network I/O performance

  6. Run benchmarks:

    ./run_benchmarks.sh
  7. Individual runtime tests:

    cargo run --release --bin tokio_bench
    cargo run --release --bin async_std_bench
    cargo run --release --bin smol_bench
  8. Criterion detailed benchmarks:

    cargo bench
    # Results in target/criterion/report/index.html

benchmark Reports

  • images/aync_std.png
  • images/smol.png
  • images/tokio.png

About

Rust synchronous Programming benchmarks This comprehensive benchmark suite tests Tokio, async-std, and smol across five key scenarios

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published