Software for benchmarking programs using GNU Time.
$ if [[ $(uname) == "Darwin" ]]; then brew install gnu-time; fi
$ conda install -y -c bioconda -c conda-forge galitime
$ galitime --log time.log ls
$ cat time.log
real_s user_s sys_s percent_cpu max_ram_kb exit_code fs_inputs fs_outputs real_s_alt command
0.03 0.00 0.00 10% 2904 0 0 0 0.076661 ls
Galitime has no dependencies beyond Python 3. However, on OS X it requires the GNU version of the time
command (gtime
), which can be installed by brew install gnu-time
.
conda install -y -c bioconda -c conda-forge galitime
Install the Galitime Python package:
pip install -U galitime
$ galitime -h
usage: galitime [-h] --log LOG [--experiment EXPERIMENT] [-v] command
Benchmark a command.
positional arguments:
command The command to be benchmarked
options:
-h, --help show this help message and exit
--log LOG Path to the log file with benchmark statistics (if the directory doesn't exist, it will be created).
--experiment EXPERIMENT
Name of the experiment (to be attached to the output)
-v show program's version number and exit
experiment
- Name of the experiment, if provided via-n
real_s
- Real time in seconds (wall clock time)user_s
- User CPU time in seconds (user mode, excluding system calls)sys_s
- System CPU time in seconds (kernel mode)percent_cpu
- CPU usage percentagemax_ram_kb
- Maximum RAM usage in kilobytesexit_code
- Exit code of the command (0 if everything ok)fs_inputs
- File system read read operations countfs_outputs
- File system write operations countreal_s_alt
- Python-measured real time in seconds (slightly higher thanreal_s
)command
- Command executed, with tabs replaced by spaces
Please use Github issues.
See Releases.