GeezerVison is showing github.com — Document Continuous Benchmarking in Maintainers Guides (#3631) · GenericMappingTools/pygmt@20dc597
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/maintenance.md +12Lines changed: 12 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -120,6 +120,18 @@ made to our documentation website every time we make a commit in a pull request. |
120 | 120 | The service has a configuration file `.readthedocs.yaml`, with a list of options |
121 | 121 | to change the default behaviour at <https://docs.readthedocs.io/en/stable/config-file/index.html>. |
122 | 122 |
|
| 123 | +## Continuous Benchmarking |
| 124 | + |
| 125 | +We use the [CodSpeed](https://codspeed.io) service to continuously track PyGMT's |
| 126 | +performance. The `pytest-codspeed` plugin collects benchmark data and uploads it to the |
| 127 | +CodSpeed server, where results are available at <https://codspeed.io/GenericMappingTools/pygmt>. |
| 128 | + |
| 129 | +Benchmarking is handled through the `benchmarks.yml` GitHub Actions workflow. It's |
| 130 | +automatically executed when a pull request is merged into the main branch. To trigger |
| 131 | +benchmarking in a pull request, add the `run/benchmark` label to the pull request. |
| 132 | + |
| 133 | +To include a new test in the benchmark suite, apply the `@pytest.mark.benchmark` |
| 134 | +decorator to a test function. |
123 | 135 |
|
124 | 136 | ## Dependencies Policy |
125 | 137 |
|
|