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

Move benchmarks to an independent project #325

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

amirhosv
Copy link
Contributor

@amirhosv amirhosv commented Sep 5, 2023

Move benchmarks to an independent project

  • Benchmarks now depend on ACCP and there is no need to build ACCP
  • Benchmarks can be run against published ACCP artifacts on Maven

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@amirhosv amirhosv marked this pull request as ready for review September 5, 2023 18:20
@amirhosv amirhosv requested a review from a team as a code owner September 5, 2023 18:20
@@ -1,8 +1,10 @@
// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazon.corretto.crypto.provider;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using published ACCP for benchmarking, it complains that the benchmark package is not consistent with ACCP's signed JAR. To resolve this issue, the benchmark code is moved to com.amazon.corretto.crypto.provider.benchmarks from com.amazon.corretto.crypto.provider.

Copy link
Contributor

@WillChilds-Klein WillChilds-Klein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent simplification @amirhosv !

benchmarks/lib/build.gradle.kts Outdated Show resolved Hide resolved
benchmarks/README.md Show resolved Hide resolved
* Benchmarks now depend on ACCP and there is no need to build ACCP
* Benchmarks can be run against published ACCP artifacts on Maven
jmhResultPath = "${jmhReportOutput}/results.json"
}

tasks.jmh {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block ensures jmhReport is executed after jmh.

@amirhosv amirhosv requested review from geedo0 and brian-jarvis-aws and removed request for geedo0 and brian-jarvis-aws September 6, 2023 20:31
@geedo0
Copy link
Contributor

geedo0 commented Sep 7, 2023

Thanks for doing this! This'll solve a lot of annoying problems related to the awkward JMH source set breaking conventions in IDEs and Gradle.

Copy link
Contributor

@geedo0 geedo0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@WillChilds-Klein WillChilds-Klein merged commit 74d6ba5 into corretto:main Sep 7, 2023
6 checks passed
@amirhosv amirhosv deleted the benchmarks branch September 7, 2023 18:36
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