- Create Performance Tests
- Connect your Repository
- Run the Tests in your CI
- Introduce a Performance Regression
Create Performance Tests
-
Install the CodSpeed plugin for
pytest: -
Write a performance test using the
@pytest.mark.benchmarkmarker:tests/test_sum_squares.py -
Run your performance tests locally:
Great! We set up our first performance test. Now, let’s track the performance in the CI with CodSpeed!
Connect your Repository
- Login on CodSpeed
-
Go to settings and install the CodSpeed
GitHub App by clicking on the “Import” button.