2 stable releases

1.1.0 Apr 20, 2021
1.0.0 Dec 5, 2017

#366 in Profiling

Download history 8/week @ 2024-01-28 9/week @ 2024-02-18 9/week @ 2024-02-25 1/week @ 2024-03-03 8/week @ 2024-03-10 68/week @ 2024-03-31

76 downloads per month

MIT license

9KB
64 lines

bench-rs

Benchmark command line commands inspired by bench.

Install

To install bench-rs just run the following command:

cargo install bench

CLI Help

bench 1.1.0
Alexander Thaller <alexander@thaller.ws>
Run a program, measure execution time and print statistics.

USAGE:
    bench [OPTIONS] <command>...

FLAGS:
    -h, --help
            Prints help information

    -V, --version
            Prints version information


OPTIONS:
    -d, --id <id>
            id to save benchmark under. defaults to command value

    -l, --loglevel <level>
            loglevel to run under [default: info]  [values: trace, debug, info, warn,
            error]
    -s, --sample_size <count>
            how many samples to take [default: 100]


ARGS:
    <command>...

Example

Dependencies

~9–13MB
~236K SLoC