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

Benchmarking ACCP when it's bundled with JDK #360

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

amirhosv
Copy link
Contributor

@amirhosv amirhosv commented Feb 6, 2024

Description of changes:

The change allows to run benchmarks with ACCP when it's bundled with JDK.

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 changed the title Benchmarking ACCP when its bundled with JDK Benchmarking ACCP when it's bundled with JDK Feb 6, 2024
@amirhosv amirhosv marked this pull request as ready for review February 6, 2024 16:54
@amirhosv amirhosv requested a review from a team as a code owner February 6, 2024 16:54
geedo0
geedo0 previously approved these changes Feb 7, 2024
geedo0
geedo0 previously approved these changes Feb 12, 2024
}
}

static void removeAllProviders() {
Copy link
Contributor

@WillChilds-Klein WillChilds-Klein Feb 14, 2024

Choose a reason for hiding this comment

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

I believe the original reason to remove/setup individual providers was to isolate utilities classes or other crypto instances that may be requested internally by providers without specifying a provider explicitly. One instance of that can be found in JDK11's MGF1, some others here.

My concern here is that without isolating individual providers/provider suites, then we'll get less accurate measurements due to cross-provider instance sourcing (e.g. getting a MGF1 instance from JDK11 that internally uses a higher-JCA-priority MessageDigest instance from BouncyCastle). Do we need this particular change (installing all providers all the time) to satisfy the overall intent of the PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching that.

@amirhosv amirhosv merged commit 8fa7c18 into corretto:main Feb 21, 2024
10 checks passed
@amirhosv amirhosv deleted the benchmarks branch February 21, 2024 15:50
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