Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions docs/8-quality.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ Two harnesses measure the client, and a recorded baseline is what later rounds c
batch of 1000 small JSON messages, and the consumer decompresses it and splits it into its messages.
- **End to end**, `tools/perf`: this client's `pulsar-perf`, which `cargo build --release` builds. `pulsar-perf produce`
and `pulsar-perf consume` measure the producer's and the Queue consumer's throughput and latency against a broker.
Their options, their payloads and their summary lines are those of Java's `pulsar-perf`, which drives the V5 client
for a `topic://` topic, so that the two compare line for line. `tools/perf/baseline.sh` runs both, each in a
container of its own on the broker's Docker network, against a standalone broker of its own for each run, both
bounded by a 64 MiB client memory limit, the only bound a V5 producer has.
Their options, their payloads, their reports every 10 seconds and their summary lines are those of Java's
`pulsar-perf`, which drives the V5 client for a `topic://` topic, so that the two compare line for line.
`tools/perf/baseline.sh` runs both, each in a container of its own on the broker's Docker network, against a
standalone broker of its own for each run, both bounded by a 64 MiB client memory limit, the only bound a V5
producer has.

Still to measure: loop counts, with producers spread over the thread-safe client's loops, and pulsar-rs, which has no
scalable topics, so `persistent://` topics through the migration bridge, from a harness on tokio. An OpenMessaging
Expand Down
2 changes: 2 additions & 0 deletions tools/perf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ clap = { version = "4.6", features = ["derive"] }
compio = { workspace = true, features = ["runtime", "time"] }
futures-util = { version = "0.3", default-features = false, features = ["std", "async-await-macro"] }
hdrhistogram = { version = "7.5", default-features = false }
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[lints]
workspace = true
Loading
Loading