2 unstable releases

0.2.0 Jan 11, 2023
0.1.0 Nov 24, 2022

#127 in Profiling

Download history 1121/week @ 2024-10-14 802/week @ 2024-10-21 766/week @ 2024-10-28 668/week @ 2024-11-04 540/week @ 2024-11-11 968/week @ 2024-11-18 770/week @ 2024-11-25 630/week @ 2024-12-02 600/week @ 2024-12-09 665/week @ 2024-12-16 486/week @ 2024-12-23 637/week @ 2024-12-30 673/week @ 2025-01-06 545/week @ 2025-01-13 781/week @ 2025-01-20 328/week @ 2025-01-27

2,351 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–770KB
~14K SLoC