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
benches: move to criterion-rs and GitHub actions #366
Conversation
0b8dfb5
to
51a5397
Compare
This was green on my fork: https://github.com/lucab/rust-prometheus/actions/runs/349778558 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am in favor of this. Thanks for doing the change.
.travis.yml
Outdated
@@ -46,6 +40,5 @@ script: | |||
cargo test -p prometheus-static-metric --no-default-features --features="$FEATURES" | |||
|
|||
# Run benchmarks. | |||
cargo bench --no-default-features --features="$FEATURES" | |||
cargo bench -p prometheus-static-metric --no-default-features --features="$FEATURES" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit reluctant to only partially move to criterion. Is there something blocking us from using criterion in prometheus-static-metric as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe because prometheus-static-metric
itself is something that requires nightly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No sorry, I just ran out of time on Friday and preferred to split the move into smaller bits. I saw today that there wasn't too much left to be converted, so I amended this PR now to complete the move.
This moves all benches to criterion-rs, in order to allow running benchmarks on a stable toolchain. This also moves benchmarking and linting jobs to a pinned toolchain, under GitHub actions. Signed-off-by: Luca BRUNO <luca.bruno@coreos.com>
6591bd8
to
a12f22c
Compare
This should be ready for another round of reviews. Checks will not show up here until the workflow is merged first, but they were green on my fork: https://github.com/lucab/rust-prometheus/actions/runs/353547239 |
This moves all benches to criterion-rs, in order to allow running
benchmarks on a stable toolchain.
This also moves benchmarking and linting jobs to a pinned toolchain,
under GitHub actions.