2 unstable releases

0.2.0 Jan 11, 2023
0.1.0 Nov 24, 2022

#805 in Parser implementations

Download history 5419/week @ 2024-01-26 5219/week @ 2024-02-02 977/week @ 2024-02-09 2421/week @ 2024-02-16 5337/week @ 2024-02-23 3979/week @ 2024-03-01 3741/week @ 2024-03-08 4403/week @ 2024-03-15 4315/week @ 2024-03-22 3642/week @ 2024-03-29 3907/week @ 2024-04-05 3756/week @ 2024-04-12 3440/week @ 2024-04-19 2191/week @ 2024-04-26 2682/week @ 2024-05-03 2084/week @ 2024-05-10

11,234 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

~250–750KB
~14K SLoC