Skip to content

Commit

Permalink
address code review commenst
Browse files Browse the repository at this point in the history
  • Loading branch information
neonphog committed Apr 23, 2024
1 parent 1856628 commit 8f9b50e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rust/sbd-bench/src/c_turnover.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
use super::*;
use std::collections::VecDeque;

/// This benchmark sets up a server that only accepts 4 clients.
/// Each iteration it:
/// - tries to connect new clients until it gets a connect error.
/// - drops one of the old clients so there is exactly 1 space free.
/// - connects 1 new client and panics if it errors connecting.
pub struct CTurnoverBenchmark {
server: SbdServer,
house: VecDeque<(WsRawSend, WsRawRecv)>,
Expand Down

0 comments on commit 8f9b50e

Please sign in to comment.