Skip to content
Snippets Groups Projects
Pierre-Yves David's avatar
Pierre-Yves David authored
We could use this to easily enable and disabled repository to benchmark on.
4a55c120
History
Name Last commit Last update
benchmarks
repo-scripts
tests
.dockerignore
.hgignore
.netlify
Dockerfile
README.md
asv.conf.json
asv_result_time.py
config.yaml
docker-compose.yml
hgweb.config
launch.sh
prepare_repos.py
requirements.txt

High-level mercurial performance testing

Setup with Docker

With docker, you only need to launch this command to get the results: docker-compose up --build

The runner will start, test a bunch of commits and you will see results at http://localhost:8080

Setup manually

You can follow the Dockerfile content which is basically:

  • Install the dependencies with pip install -r requirements.txt
  • Prepare the repos, asv specifics file and launch the workers with: ./launch.sh
  • Get the webserver running for showing the results with: asv preview

For pull/push benchmark with ssh you have to setup a ssh-key without passphrase (or rely on ssh-agent).

mkdir ~/.ssh
ssh-keygen -P '' -f ~/.ssh/bighgperf
cat ~/.ssh/bighgperf.pub >> ~/.ssh/authorized_keys
ssh-keyscan -H localhost >> ~/.ssh/known_hosts