Skip to content

Commit

Permalink
Test with zero-capacity rendezvous channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Pr0methean committed Jan 18, 2024
1 parent ca2881a commit 4f97f51
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ macro_rules! single_thread_bench {
fn benchmark_single_thread(c: &mut Criterion) {
let mut group = c.benchmark_group("Single Thread");
group.throughput(Throughput::Bytes(size_of::<u64>() as u64));
single_thread_bench!(group, 0);
single_thread_bench!(group, 1);
single_thread_bench!(group, 2);
single_thread_bench!(group, 4);
Expand Down Expand Up @@ -85,6 +86,7 @@ macro_rules! benchmark_contended {
fn benchmark_contended(c: &mut Criterion) {
let mut group = c.benchmark_group("Contended");
group.throughput(Throughput::Bytes(size_of::<u64>() as u64));
benchmark_contended!(group, 0);
benchmark_contended!(group, 1);
benchmark_contended!(group, 2);
benchmark_contended!(group, 4);
Expand Down

0 comments on commit 4f97f51

Please sign in to comment.