Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run benches in CI #74

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Run benches in CI #74

merged 2 commits into from
Nov 14, 2023

Conversation

rukai
Copy link
Contributor

@rukai rukai commented Nov 14, 2023

Previously we werent running the benchmarks at all in CI, we were only compiling them.

With the addition of --all-targets, cargo test now runs a single iteration of each benchmark.
This is not as realistic as running cargo bench since some issues may only manifest after many iterations but should catch the vast majority of issues and it does maintain our 1 minute CI run time, whereas running cargo bench would take a long time to complete.

I had to remove the --include-ignored since criterion cant handle that flag.
This means that tests with #[ignore] are no longer run in CI.

@rukai rukai force-pushed the run-benches-in-CI branch from 91f9843 to 48fd13c Compare November 14, 2023 05:40
@rukai rukai merged commit 191fd84 into main Nov 14, 2023
2 checks passed
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.

3 participants