2 unstable releases

0.2.0 Jan 11, 2023
0.1.0 Nov 24, 2022

#771 in Parser implementations

Download history 4575/week @ 2023-12-06 3908/week @ 2023-12-13 4420/week @ 2023-12-20 3426/week @ 2023-12-27 4856/week @ 2024-01-03 4766/week @ 2024-01-10 5517/week @ 2024-01-17 5158/week @ 2024-01-24 5957/week @ 2024-01-31 2422/week @ 2024-02-07 1630/week @ 2024-02-14 4334/week @ 2024-02-21 4512/week @ 2024-02-28 3937/week @ 2024-03-06 4058/week @ 2024-03-13 2897/week @ 2024-03-20

16,469 downloads per month
Used in 2 crates

Apache-2.0

40KB
703 lines

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.

Dependencies

~255–760KB
~14K SLoC