https://github.com/risingwavelabs/nexmark-rs
Nexmark event generator in Rust.
https://github.com/risingwavelabs/nexmark-rs
Last synced: 29 days ago
JSON representation
Nexmark event generator in Rust.
- Host: GitHub
- URL: https://github.com/risingwavelabs/nexmark-rs
- Owner: risingwavelabs
- License: apache-2.0
- Created: 2022-11-24T07:33:42.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T03:27:08.000Z (over 2 years ago)
- Last Synced: 2025-04-12T13:52:20.393Z (6 months ago)
- Language: Rust
- Size: 19.5 KB
- Stars: 14
- Watchers: 8
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Nexmark-rs
[](https://crates.io/crates/nexmark)
[](https://docs.rs/nexmark)
[](https://github.com/risingwavelabs/nexmark-rs/actions)The [Nexmark benchmark](https://github.com/nexmark/nexmark) data generator in Rust.
## Installation
```sh
cargo install nexmark --features bin
```## Usage
Generate nexmark events. Print one per line in JSON format:
```sh
nexmark
```Only generate events for a specific type:
```sh
nexmark -t person
```By default it generates events at a certain rate based on the timestamp. You can make it generate all at once by adding `--no-wait`:
```sh
nexmark -n 10 --no-wait
```See more usages:
```sh
nexmark -h
```## Using as Library
Add nexmark to your Cargo.toml:
```sh
cargo add nexmark
```Generate events from the generator:
```rust
use nexmark::EventGenerator;for event in EventGenerator::default().take(10) {
println!("{event:?}");
}
```## License
Apache License 2.0. Please refer to [LICENSE](LICENSE) for more information.