Skip to content

Commit c42a832

Browse files
authored
balancer: add message latency benchmarks (#1173)
* balancer: add message latency benchmarks * refactor how balancer context is initialized
1 parent 3bc8b99 commit c42a832

File tree

7 files changed

+429
-16
lines changed

7 files changed

+429
-16
lines changed

Cargo.lock

+209
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ async-trait = "0.1.68"
88
bytes = "1.4.0"
99
clap = { version = "4.3.12", features = ["derive"] }
1010
console-subscriber = "0.1.8"
11+
criterion = { version = "0.5.1", features = ["async_tokio"] }
1112
figment = { version = "0.10.10", features = ["toml", "env"] }
1213
futures-util = "0.3.28"
1314
harness = { path = "crates/harness" }

crates/ott-balancer/Cargo.toml

+7
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@ once_cell.workspace = true
3535
pin-project.workspace = true
3636
prometheus.workspace = true
3737
trust-dns-resolver = { version = "0.22.0", features = ["system-config"] }
38+
39+
[dev-dependencies]
40+
criterion.workspace = true
41+
42+
[[bench]]
43+
name = "throughput"
44+
harness = false

0 commit comments

Comments
 (0)