Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jeehoonkang/9c876e45668706c4d51c3ce37864189a to your computer and use it in GitHub Desktop.
benchmarking crossbeam-channel and concurrent-circbuf
$ cargo run --release --bin crossbeam-channel | tee crossbeam-channel.txt
Compiling crossbeam-channel v0.1.2 (file:///home/jeehoon.kang/Works/crossbeam-channel)
Compiling benchmark v0.1.0 (file:///home/jeehoon.kang/Works/crossbeam-channel/benchmarks)
Finished release [optimized] target(s) in 7.27 secs
Running `target/release/crossbeam-channel`
bounded0_mpmc Rust channel 6.226 sec
bounded0_mpsc Rust channel 7.147 sec
bounded0_select_both Rust channel 102.518 sec
bounded0_select_rx Rust channel 8.880 sec
bounded0_spmc Rust channel 7.332 sec
bounded0_spsc Rust channel 6.280 sec
bounded1_mpmc Rust channel 5.365 sec
bounded1_mpsc Rust channel 4.909 sec
bounded1_select_both Rust channel 4.851 sec
bounded1_select_rx Rust channel 3.062 sec
bounded1_spmc Rust channel 4.715 sec
bounded1_spsc Rust channel 2.370 sec
bounded_mpmc Rust channel 2.888 sec
bounded_mpsc Rust channel 2.097 sec
bounded_select_both Rust channel 0.995 sec
bounded_select_rx Rust channel 0.487 sec
bounded_seq Rust channel 0.251 sec
bounded_spmc Rust channel 3.434 sec
bounded_spsc Rust channel 1.721 sec
unbounded_mpmc Rust channel 1.351 sec
unbounded_mpsc Rust channel 1.909 sec
unbounded_select_both Rust channel 0.652 sec
unbounded_select_rx Rust channel 0.425 sec
unbounded_seq Rust channel 0.421 sec
unbounded_spmc Rust channel 1.784 sec
unbounded_spsc Rust channel 1.800 sec
$ cargo run --release --bin concurrent-circbuf | tee concurrent-circbuf.txt
Compiling benchmark v0.1.0 (file:///home/jeehoon.kang/Works/crossbeam-channel/benchmarks)
Finished release [optimized] target(s) in 2.23 secs
Running `target/release/concurrent-circbuf`
unbounded_mpmc Rust circbuf 3.674 sec
unbounded_mpsc Rust circbuf 2.138 sec
unbounded_seq Rust circbuf 0.156 sec
unbounded_spmc Rust circbuf 1.373 sec
unbounded_spsc Rust circbuf 0.165 sec
$ cargo run --release --bin crossbeam-channel | tee crossbeam-channel.txt
Compiling benchmark v0.1.0 (file:///Users/jeehoon.kang/Works/crossbeam-channel/benchmarks)
Finished release [optimized] target(s) in 7.30 secs
Running `target/release/crossbeam-channel`
bounded0_mpmc Rust channel 2.648 sec
bounded0_mpsc Rust channel 1.949 sec
bounded0_select_both Rust channel 15.259 sec
bounded0_select_rx Rust channel 13.040 sec
bounded0_spmc Rust channel 2.071 sec
bounded0_spsc Rust channel 2.238 sec
bounded1_mpmc Rust channel 0.460 sec
bounded1_mpsc Rust channel 0.509 sec
bounded1_select_both Rust channel 1.718 sec
bounded1_select_rx Rust channel 1.607 sec
bounded1_spmc Rust channel 0.539 sec
bounded1_spsc Rust channel 0.942 sec
bounded_mpmc Rust channel 0.402 sec
bounded_mpsc Rust channel 0.380 sec
bounded_select_both Rust channel 0.690 sec
bounded_select_rx Rust channel 0.638 sec
bounded_seq Rust channel 0.259 sec
bounded_spmc Rust channel 0.371 sec
bounded_spsc Rust channel 0.457 sec
unbounded_mpmc Rust channel 0.332 sec
unbounded_mpsc Rust channel 0.400 sec
unbounded_select_both Rust channel 0.783 sec
unbounded_select_rx Rust channel 0.661 sec
unbounded_seq Rust channel 0.477 sec
unbounded_spmc Rust channel 0.583 sec
unbounded_spsc Rust channel 0.340 sec
$ cargo run --release --bin concurrent-circbuf | tee concurrent-circbuf.txt
Finished release [optimized] target(s) in 0.0 secs
Running `target/release/concurrent-circbuf`
unbounded_mpmc Rust circbuf 24.368 sec
unbounded_mpsc Rust circbuf 22.973 sec
unbounded_seq Rust circbuf 0.156 sec
unbounded_spmc Rust circbuf 0.367 sec
unbounded_spsc Rust circbuf 0.163 sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment