Skip to content
Snippets Groups Projects
user avatar
Raphaël Gomès authored
b35d146e
History
Name Last commit Last update
bin
cache
datasets
python-libs
scm-perf
src
tests
tmp
web-ui
.gitlab-ci.yml
.hg-format-source
.hgignore
.hgtags
.nvmrc
Cargo.lock
Cargo.toml
README.md
run

Megafine

A tool for benchmarking Mercurial. The name is inspired from hyperfine.

Usage

See ./run --help and ./run <subcommand> --help

Example

$ ./run time datasets/default.toml 'hg status'
    Finished release [optimized] target(s) in 0.05s
     Running `target/release/megafine time datasets/default.toml 'hg status'`
Running in format-bytes_2021-11-05_483a743760ac… 131 ms
Running in mercurial-devel_2021-11-05_1a420a13eeea… 159 ms

Cleanup

hg clean -i tmp is safe to run any time Megafine is not running. It should usually do nothing, but might if a process was interrupted.

hg clean -i cache is safe to run any time Megafine is not running, at the cost of CPU time and/or network traffic to rebuild parts as they become needed again.