Skip to content

Create route calculation benchmark tests using pytest-benchmark - #358

Open
thomaszwagerman wants to merge 6 commits into
mainfrom
tz/benchmark-routing
Open

Create route calculation benchmark tests using pytest-benchmark#358
thomaszwagerman wants to merge 6 commits into
mainfrom
tz/benchmark-routing

Conversation

@thomaszwagerman

@thomaszwagerman thomaszwagerman commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

With an eye on #280, set up some benchmark tests for us to routinely compare against when developing performance improvements to routing calculations.

Also adding a benchmark action which will compare performance against main. main will only have a baseline once this is merged in, so currently it is not comparing against anything. The "acceptable" threshold is a 10% regression from the baseline (no idea if that is sensible? but let's try it), the CI will fail if this is exceeded.

When merging to main a PR will be opened with an updated baseline - a human can then decide if the baseline should be updated. The reason for not doing this automatically is if there is a subtle drift (say of 8%), and then another, another etc. we still get a regression over time without noticing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant