| Crates.io | tmrs |
| lib.rs | tmrs |
| version | 0.3.0 |
| created_at | 2024-01-24 01:13:03.148577+00 |
| updated_at | 2024-01-24 16:03:54.743713+00 |
| description | CLI utility to measure time performance of commands with things like averages |
| homepage | https://github.com/alxgmpr/tmrs |
| repository | https://github.com/alxgmpr/tmrs |
| max_upload_size | |
| id | 1111481 |
| size | 21,343 |
CLI utility to measure time performance of commands with things like averages and standard deviation built in.
Name inspired by time, with the obvious rs suffix. Pronounced "timers" (I guess?).
Just follow tmrs with the command you want to time:
$ tmrs ls
avg: 0.003sec
std dev: 0.000sec
To pass arguments, separate the command from the arguments with --:
$ tmrs -- ls -R
avg: 0.013sec
std dev: 0.006sec
Usage: tmrs [OPTIONS] <COMMAND>...
Arguments:
<COMMAND>... The command to time against
Options:
-n, --number <NUMBER> Number of runs to average [default: 5]
-d, --debug Enable debug logging, log timing for each run
-v, --verbose Log the output of the ran commands to stdout
-h, --help Print help
-V, --version Print version
Install directly from crates.io and have package built on your machine (takes just a sec!):
$ cargo install tmrs
Clone and build from source:
$ git clone git@github.com:alxgmpr/tmrs.git
$ cd tmrs
$ cargo build --release
$ cp target/release/tmrs /usr/local/bin # or wherever you want
MIT