https://github.com/alxgmpr/tmrs
CLI utility to measure time performance of commands with things like averages and standard deviation built in.
https://github.com/alxgmpr/tmrs
cli mean measurement performance-testing rust standard-deviation
Last synced: over 1 year ago
JSON representation
CLI utility to measure time performance of commands with things like averages and standard deviation built in.
- Host: GitHub
- URL: https://github.com/alxgmpr/tmrs
- Owner: alxgmpr
- License: mit
- Created: 2024-01-23T23:56:39.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-24T17:02:07.000Z (over 2 years ago)
- Last Synced: 2024-04-24T16:04:39.460Z (about 2 years ago)
- Topics: cli, mean, measurement, performance-testing, rust, standard-deviation
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- License: license.md
- Code of conduct: code_of_conduct.md
Awesome Lists containing this project
README
# tmrs
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?).
### Usage
Just follow `tmrs` with the command you want to time:
```shell
$ tmrs ls
avg: 0.003sec
std dev: 0.000sec
```
To pass arguments, separate the command from the arguments with `--`:
```shell
$ tmrs -- ls -R
avg: 0.013sec
std dev: 0.006sec
```
### Options
```
Usage: tmrs [OPTIONS] ...
Arguments:
... The command to time against
Options:
-n, --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
```
### Installation
Install directly from crates.io and have package built on your machine (takes just a sec!):
```shell
$ cargo install tmrs
```
Clone and build from source:
```shell
$ git clone git@github.com:alxgmpr/tmrs.git
$ cd tmrs
$ cargo build --release
$ cp target/release/tmrs /usr/local/bin # or wherever you want
```
### License
MIT