Skip to content

Conversation

@dagnir
Copy link
Contributor

@dagnir dagnir commented Dec 2, 2025

Motivation and Context

Add virtual thread benchmarks for supported HTTP clients. Note that these "benchmarks" act more as verification that virtual threads don't get pinned with various HTTP clients rather than a direct measurement of performance gains or improvements as a result of using virtual threads over platform threads.

This commit also refactors existing Apache4 and Apache5Benchmark slightly.

Modifications

Testing

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed
  • I have added a changelog entry. Adding a new entry must be accomplished by running the scripts/new-change script and following the instructions. Commit the new file created by the script in .changes/next-release with your changes.
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

Add virtual thread benchmarks for supported HTTP clients. Note that
these "benchmarks" act more as verification that virtual threads don't
get pinned with various HTTP clients rather than a direct measurement of
performance gains or improvements as a result of using virtual threads
over platform threads.

This commit also refactors existing Apache4 and Apache5Benchmark slightly.
@dagnir dagnir requested a review from a team as a code owner December 2, 2025 00:55
dagnir and others added 4 commits December 2, 2025 14:56
…dk/benchmark/core/ObjectSize.java

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>
…dk/benchmark/apache5/Apache5Benchmark.java

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>
…dk/benchmark/apache5/Apache5Benchmark.java

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>
…dk/benchmark/apache5/Apache5Benchmark.java

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>
@dagnir dagnir enabled auto-merge December 2, 2025 23:32
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2025

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@dagnir dagnir added this pull request to the merge queue Dec 2, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 2, 2025
* Add VirtualThread HTTP benchmarks

Add virtual thread benchmarks for supported HTTP clients. Note that
these "benchmarks" act more as verification that virtual threads don't
get pinned with various HTTP clients rather than a direct measurement of
performance gains or improvements as a result of using virtual threads
over platform threads.

This commit also refactors existing Apache4 and Apache5Benchmark slightly.

* Checkstyle fixes

* Sonar fixes

* Update test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/core/ObjectSize.java

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>

* Update test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/apache5/Apache5Benchmark.java

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>

* Update test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/apache5/Apache5Benchmark.java

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>

* Update test/http-client-benchmarks/src/main/java/software/amazon/awssdk/benchmark/apache5/Apache5Benchmark.java

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>

---------

Co-authored-by: David Ho <70000000+davidh44@users.noreply.github.com>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 3, 2025
@dagnir dagnir added this pull request to the merge queue Dec 4, 2025
Merged via the queue into master with commit 3b6549a Dec 4, 2025
42 of 44 checks passed
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

This pull request has been closed and the conversation has been locked. Comments on closed PRs are hard for our team to see. If you need more assistance, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants