2 unstable releases

0.2.0 Jan 11, 2023
0.1.0 Nov 24, 2022

#1073 in Parser implementations

Download history 4376/week @ 2024-03-14 3825/week @ 2024-03-21 4641/week @ 2024-03-28 3376/week @ 2024-04-04 3706/week @ 2024-04-11 3708/week @ 2024-04-18 2726/week @ 2024-04-25 2193/week @ 2024-05-02 2616/week @ 2024-05-09 2492/week @ 2024-05-16 1739/week @ 2024-05-23 900/week @ 2024-05-30 807/week @ 2024-06-06 796/week @ 2024-06-13 624/week @ 2024-06-20 544/week @ 2024-06-27

3,032 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

~245–750KB
~14K SLoC