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

ci: Emit CloudWatch metrics from rust benchmarks #4742

Merged
merged 6 commits into from
Sep 10, 2024
Merged

Conversation

goatgoose
Copy link
Contributor

@goatgoose goatgoose commented Aug 28, 2024

Description of changes:

This PR adds a new Github action which runs the s2n-tls criterion benchmarks and publishes the results to CloudWatch. The CloudWatch metrics are published from a script that parses the output of criterion to obtain the benchmarking results.

Call-outs:

The Github action is set to run on merges to main and on a schedule. Running when merging to main ensures that each s2n-tls commit can be observed for performance changes. Running on a schedule ensures that changes to any other benchmarking target can be observed if an s2n-tls commit hasn't been merged in a while.

Testing:

A commit that ran on pull requests was added for testing: b16a9fe

The Github action output from this commit can be viewed here: https://github.com/aws/s2n-tls/actions/runs/10780428029/job/29896166564

The metrics produced from this commit can be viewed in CloudWatch: https://us-west-2.console.aws.amazon.com/cloudwatch/home?region=us-west-2#dashboards/dashboard/s2n-tls-perf?start=PT168H&end=null

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@goatgoose goatgoose marked this pull request as ready for review September 3, 2024 19:32
@goatgoose goatgoose requested review from jmayclin and dougch September 3, 2024 19:32
.github/bin/criterion_to_cloudwatch.py Outdated Show resolved Hide resolved
.github/bin/criterion_to_cloudwatch.py Outdated Show resolved Hide resolved
.github/workflows/bench.yml Show resolved Hide resolved
.github/bin/criterion_to_cloudwatch.py Show resolved Hide resolved
@goatgoose goatgoose requested a review from dougch September 9, 2024 21:24
@goatgoose goatgoose enabled auto-merge (squash) September 10, 2024 13:58
@goatgoose goatgoose merged commit 075261e into main Sep 10, 2024
39 checks passed
@goatgoose goatgoose deleted the bench-metrics branch September 10, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants