Crates.io | nexmark |
lib.rs | nexmark |
version | 0.2.0 |
source | src |
created_at | 2022-11-24 08:22:52.265979 |
updated_at | 2023-01-11 03:27:50.319623 |
description | Nexmark data stream generator. |
homepage | https://github.com/risingwavelabs/nexmark-rs |
repository | https://github.com/risingwavelabs/nexmark-rs |
max_upload_size | |
id | 722064 |
size | 76,595 |
The Nexmark benchmark data generator in Rust.
cargo install nexmark --features bin
Generate nexmark events. Print one per line in JSON format:
nexmark
Only generate events for a specific type:
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
:
nexmark -n 10 --no-wait
See more usages:
nexmark -h
Add nexmark to your Cargo.toml:
cargo add nexmark
Generate events from the generator:
use nexmark::EventGenerator;
for event in EventGenerator::default().take(10) {
println!("{event:?}");
}
Apache License 2.0. Please refer to LICENSE for more information.