https://github.com/bewaremypower/pulsar-rs-perf
The performance tool on pulsar-rs
https://github.com/bewaremypower/pulsar-rs-perf
Last synced: 6 days ago
JSON representation
The performance tool on pulsar-rs
- Host: GitHub
- URL: https://github.com/bewaremypower/pulsar-rs-perf
- Owner: BewareMyPower
- License: other
- Created: 2025-08-27T14:45:45.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-09-19T03:11:32.000Z (10 months ago)
- Last Synced: 2025-09-19T05:34:17.509Z (10 months ago)
- Language: Rust
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pulsar-rs-perf
The performance tool on [pulsar-rs](https://github.com/streamnative/pulsar-rs).
## How to build
Please ensure your system has `protoc` installed. For example, on macOS, you can run:
```bash
brew install protobuf
```
Then you can build the project with:
```bash
cargo build
```
Run the performance tool:
## Produce messages
```bash
RUST_LOG=info ./target/debug/pulsar-rs-perf my-topic produce
```
The command above will produce messages to `my-topic` with default settings, which is equivalent to:
```bash
RUST_LOG=info ./target/release/pulsar-rs-perf my-topic \
--service-url "pulsar://localhost:6650" \
produce --rate 500 -n 10000
```
Options for the main command:
- `--service-url`: The Pulsar service URL (default: `pulsar://localhost:6650`)
- `--auth-token`: The authentication token (default: `None`, which means no authentication)
Options for `produce` sub-command:
- `--rate`: The message producing rate (default: `500` messages per second)
- `-n` or `--num-messages`: The total number of messages to send (default: `10000`)