Skip to content
Snippets Groups Projects
Commit 5c9facee authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

readme: update with common command example

parent 388ece94
No related branches found
No related tags found
No related merge requests found
......@@ -22,3 +22,58 @@
cat ~/.ssh/bighgperf.pub >> ~/.ssh/authorized_keys
ssh-keyscan -H localhost >> ~/.ssh/known_hosts
```
How to Setup
============
Make sure you have the environment setup
$ virtualenv some/dir/venv-asv
$ some/dir/venv-asv/bin/pip install -r requirements.txt
# Do not forget to enable the virtual env before running the benchmark
$ source some/dir/venv-asv
Running benchmarks
==================
How to run all benchmarks on the default revisions
--------------------------------------------------
$ ./launch.sh
How to run all benchmarks on specific revisions
-----------------------------------------------
$ ./launch.sh "0b63a6743010+33ac6a72308a"
(any revset are supported)
How to run some specific benchmark
----------------------------------
use the '--bench' option to filter the test to run using a regular expression
Running one benchmark only
$ ./launch.sh "0b63a6743010+33ac6a72308a" --bench track_commit
Running one pypy variant only
$ ./launch.sh "0b63a6743010+33ac6a72308a" --bench "netbeans-2018"
Running one test with one variant
$ ./launch.sh "0b63a6743010+33ac6a72308a" --bench "track_commit.*mozilla-central"
Comparing results
=================
$ asv compare -s oldhash newhash
Checking where a run spent time
===============================
$ ./asv_result_time.py results/<machine>/<result-file>.json
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment