nexmark

Crates.ionexmark
lib.rsnexmark
version0.2.0
sourcesrc
created_at2022-11-24 08:22:52.265979
updated_at2023-01-11 03:27:50.319623
descriptionNexmark data stream generator.
homepagehttps://github.com/risingwavelabs/nexmark-rs
repositoryhttps://github.com/risingwavelabs/nexmark-rs
max_upload_size
id722064
size76,595
crates-io (github:risingwavelabs:crates-io)

documentation

README

Nexmark-rs

Crate Docs CI

The Nexmark benchmark data generator in Rust.

Installation

cargo install nexmark --features bin

Usage

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

Using as Library

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:?}");
}

License

Apache License 2.0. Please refer to LICENSE for more information.

Commit count: 6

cargo fmt