2 unstable releases

0.2.0 Jan 11, 2023
0.1.0 Nov 24, 2022

#867 in Parser implementations

Download history 4373/week @ 2024-03-04 3592/week @ 2024-03-11 4178/week @ 2024-03-18 4127/week @ 2024-03-25 3896/week @ 2024-04-01 3709/week @ 2024-04-08 3996/week @ 2024-04-15 3483/week @ 2024-04-22 1463/week @ 2024-04-29 3213/week @ 2024-05-06 2457/week @ 2024-05-13 2322/week @ 2024-05-20 1175/week @ 2024-05-27 937/week @ 2024-06-03 720/week @ 2024-06-10 735/week @ 2024-06-17

3,605 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
~13K SLoC