Browse Source

Ignore late latency messages

benchmark
Philipp Oppermann 3 years ago
parent
commit
7bf362e4cd
Failed to extract signature
1 changed files with 9 additions and 7 deletions
  1. +9
    -7
      examples/benchmark/sink/src/main.rs

+ 9
- 7
examples/benchmark/sink/src/main.rs View File

@@ -30,14 +30,16 @@ fn main() -> eyre::Result<()> {
}

match input.id.as_str() {
"latency" => {}
"throughput" => {
if latency {
latency = false;
println!("Throughput:");
}
"latency" if latency => {}
"throughput" if latency => {
latency = false;
println!("Throughput:");
}
"throughput" => {}
other => {
eprintln!("Ignoring unexpected input `{other}`");
continue;
}
other => eprintln!("Ignoring unexpected input `{other}`"),
}

n += 1;


Loading…
Cancel
Save