Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions benchmarks/check_asv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source env/bin/activate #or change to your env path
git pull upstream main
sudo cpufreq-set -c 3 -g performance
#asv does recent commits first, so by letting it run for 55min, and the cron to 1hr
#it will always keep up with new commits, but also process the backlog
timeout 3300s asv run -j 4 --show-stderr --cpu-affinity 3 --skip-existing ALL
sudo cpufreq-set -c 3 -g powersave
asv publish
asv preview
19 changes: 0 additions & 19 deletions benchmarks/update_asv_site.sh

This file was deleted.

8 changes: 5 additions & 3 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -759,13 +759,12 @@ on how to write and run these tests.

Benchmarks to measure performance are in the `benchmarks` folder and are run using
[airspeed velocity](https://asv.readthedocs.io/en/stable/index.html).
An automated system runs the benchmarks on each push to the main branch and uploads
the results to [this github pages site](https://tskit-dev.github.io/msprime-asv).
A system that runs the benchmarks on each push to the main branch.
These benchmarks can also be run locally to compare your branch with the main branch.
Your changes must be in a commit to be measured. To run the benchmarks:

```
asv run asv run HEAD...main~1
asv run HEAD...main~1
```

This will run the benchmarks for the latest main branch commit and all commits on
Expand All @@ -787,6 +786,9 @@ Note the following tips:
development version. This can lead to confusing results! When tuning
benchmarks it's better to commit often and use (e.g.)
`asv run HEAD^! --show-stderr -b Hudson.time_large_sample_size`.
- You may want to benchmark a specific list of commits exclusively. To do so, put the commits' hashes in a file and use the command: `asv run --show-stderr --skip-existing HASHFILE:hashestobenchmark.txt`

- There is a script: `benchmarks/check_asv.sh` that can be used to benchmark recent commits.

## Containerization

Expand Down
2 changes: 1 addition & 1 deletion requirements/development.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
docutils==0.21.2 # issue with 0.17, https://github.com/tskit-dev/msprime/issues/1625
asv
asv==0.6.1
bintrees
coverage
daiquiri
Expand Down
Loading