Skip to content

Java21update #27

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 53 additions & 53 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,26 @@ All latencies listed below are in milliseconds.
<td>314.99</td>
</tr>
<tr>
<th>Quarkus (Java 17)</th>
<td><b style="color: green">2525.22</b></td>
<td><b style="color: green">3146.27</b></td>
<td><b style="color: green">4055.57</b></td>
<td><b style="color: green">6343.83</b></td>
<td><b style="color: green">7.50</b></td>
<td><b style="color: green">12.28</b></td>
<td><b style="color: green">29.87</b></td>
<td><b style="color: green">231.52</b></td>
<th>Quarkus (Java 21)</th>
<td><b style="color: green">2807.45</b></td>
<td><b style="color: green">3330.47</b></td>
<td><b style="color: green">4051.52</b></td>
<td><b style="color: green">4483.37</b></td>
<td><b style="color: green">8.07</b></td>
<td><b style="color: green">12.91</b></td>
<td><b style="color: green">24.61</b></td>
<td><b style="color: green">156.30</b></td>
</tr>
<tr>
<th>Spring Boot (Java 17)</th>
<td>5311.93</td>
<td>5645.88</td>
<td>6183.47</td>
<td>7027.66</td>
<td>8.13</td>
<td>13.01</td>
<td>30.03</td>
<td>251.27</td>
<th>Spring Boot (Java 21)</th>
<td>5731.16</td>
<td>6018.84</td>
<td>6258.09</td>
<td>7011.35</td>
<td>8.32</td>
<td>13.54</td>
<td>26.65</td>
<td>174.24</td>
</tr>
<tr>
<th>Dagger *</th>
Expand Down Expand Up @@ -153,26 +153,26 @@ It fits particularly well with Lambda to reduce the initialization time, but doe
<td>244.82</td>
</tr>
<tr>
<th>Quarkus (Java 17)</th>
<td><b style="color: green">487.31</b></td>
<td><b style="color: green">586.87</b></td>
<td><b style="color: green">732.67</b></td>
<td><b style="color: green">932.17</b></td>
<td><b style="color: green">7.38</b></td>
<td><b style="color: green">11.91</b></td>
<td><b style="color: green">25.20</b></td>
<td><b style="color: green">147.26</b></td>
<th>Quarkus (Java 21)</th>
<td><b style="color: green">680.44</b></td>
<td><b style="color: green">812.12</b></td>
<td><b style="color: green">922.04</b></td>
<td><b style="color: green">1038.75</b></td>
<td><b style="color: green">7.75</b></td>
<td><b style="color: green">13.11</b></td>
<td><b style="color: green">23.84</b></td>
<td><b style="color: green">174.29</b></td>
</tr>
<tr>
<th>Spring Boot (Java 17)</th>
<td>1047.87</td>
<td>1200.45</td>
<td>1597.68</td>
<td>1779.53</td>
<td>7.62</td>
<td>13.01</td>
<td>27.73</td>
<td>262.25</td>
<th>Spring Boot (Java 21)</th>
<td>1085.19</td>
<td>1278.47</td>
<td>1583.38</td>
<td>1967.14</td>
<td>7.10</td>
<td>12.01</td>
<td>23.09</td>
<td>207.14</td>
</tr>
</table>

Expand Down Expand Up @@ -208,26 +208,26 @@ It fits particularly well with Lambda to reduce the initialization time, but doe
<td>1029.55</td>
</tr>
<tr>
<th>Quarkus (22.3.r17)</th>
<td>467.27</td>
<td>599.77</td>
<td>802.43</td>
<td>1348.78</td>
<td>6.7</td>
<td>11.63</td>
<td>24.03</td>
<td>168.47</td>
<th>Quarkus</th>
<td>459.40</td>
<td>507.19</td>
<td>539.07</td>
<td>583.33</td>
<td>7.04</td>
<td>11.82</td>
<td>19.38</td>
<td>228.46</td>
</tr>
<tr>
<th>Spring Boot</th>
<td>620.66</td>
<td>684.53</td>
<td>721.77</td>
<td>751.98</td>
<td>9.10</td>
<td>14.22</td>
<td>23.61</td>
<td>259.16</td>
<td>732.67</td>
<td>835.17</td>
<td>918.36</td>
<td>1083.40</td>
<td>8.53</td>
<td>13.54</td>
<td>22.01</td>
<td>156.96</td>
</tr>
</table>

Expand Down
2 changes: 1 addition & 1 deletion quarkus/load-test/run-load-test-native.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
STACK_NAME=quarkus-native-sample
STACK_NAME=quarkus-native

API_URL=$(aws cloudformation describe-stacks --stack-name $STACK_NAME \
--query 'Stacks[0].Outputs[?OutputKey==`ApiEndpoint`].OutputValue' \
Expand Down
12 changes: 6 additions & 6 deletions quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@
<properties>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<maven.compiler.parameters>true</maven.compiler.parameters>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus-plugin.version>3.0.1.Final</quarkus-plugin.version>
<quarkus-plugin.version>3.6.3</quarkus-plugin.version>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>3.0.1.Final</quarkus.platform.version>
<quarkus.platform.version>3.6.3</quarkus.platform.version>
<surefire-plugin.version>3.0.0-M5</surefire-plugin.version>
<quarkus.package.type>uber-jar</quarkus.package.type>
<aws.package.name>${project.artifactId}-${project.version}-aws.jar</aws.package.name>
<aws.sdk2.version>2.20.42</aws.sdk2.version>
<aws.sdk2.version>2.20.42</aws.sdk2.version> <!-- Upgrading this to latest is causing native build to fail. So, leaving at earlier version for now.-->
</properties>
<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -138,7 +138,7 @@
<quarkus.package.type>native</quarkus.package.type>
<quarkus.native.container-build>true</quarkus.native.container-build>
<quarkus.native.builder-image>
quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:22.3-java17
quay.io/quarkus/ubi-quarkus-graalvmce-builder-image:jdk-21
</quarkus.native.builder-image>
<quarkus.native.additional-build-args>
--initialize-at-run-time=software.amazon.awssdk.services.dynamodb.DynamoDbRetryPolicy\,org.apache.http.impl.auth.NTLMEngineImpl\,software.amazonaws.example.product.product.dao.DynamoProductDao
Expand Down
2 changes: 1 addition & 1 deletion quarkus/template.native.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Globals:
Tracing: Active
CodeUri: target/function.zip
Handler: not.used.in.provided.runtime
Runtime: provided
Runtime: provided.al2023
Timeout: 30
MemorySize: 1024
Environment:
Expand Down
2 changes: 1 addition & 1 deletion quarkus/template.snapstart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Globals:
Tracing: Active
CodeUri: target/quarkus-lambda-function-1.0.0-SNAPSHOT-aws.jar
Handler: io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest
Runtime: java17
Runtime: java21
Timeout: 30
MemorySize: 1024
AutoPublishAlias: live
Expand Down
2 changes: 1 addition & 1 deletion quarkus/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Globals:
Tracing: Active
CodeUri: target/quarkus-lambda-function-1.0.0-SNAPSHOT-aws.jar
Handler: io.quarkus.amazon.lambda.runtime.QuarkusStreamHandler::handleRequest
Runtime: java17
Runtime: java21
Timeout: 30
MemorySize: 1024
Environment:
Expand Down
6 changes: 3 additions & 3 deletions springboot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ You can learn more about SnapStart and Priming [here](https://aws.amazon.com/blo

On macOS:
```bash
docker run -v ~/.m2/repository:/root/.m2/repository --mount type=bind,source=$(pwd),destination=/project -it --entrypoint /bin/bash marksailes/al2-graalvm:11-22.0.0.2
docker run -v ~/.m2/repository:/root/.m2/repository --mount type=bind,source=$(pwd),destination=/project -it --entrypoint /bin/bash dmahapatro/al2023-graalvm:21-21.0.1
```

On macOS ARM:
```bash
docker run --mount type=bind,source=$(pwd),destination=/project -it --entrypoint /bin/bash marksailes/arm64-al2-graalvm:17-22.0.0.2
docker run -v ~/.m2/repository:/root/.m2/repository --mount type=bind,source=$(pwd),destination=/project -it --entrypoint /bin/bash aneelm/al2023-graalvm:aarm64-21-21.0.1
```

On Windows:
```bash
docker run -v <SPRING_BOOT_DIR_ABSOLUTE_PATH>:/project -it --entrypoint /bin/bash marksailes/al2-graalvm:11-22.0.0.2
docker run -v <SPRING_BOOT_DIR_ABSOLUTE_PATH>:/project -it --entrypoint /bin/bash dmahapatro/al2023-graalvm:21-21.0.1
```
Make sure to replace `SPRING_BOOT_DIR_ABSOLUTE_PATH` with an absolute path to springboot directory.

Expand Down
2 changes: 1 addition & 1 deletion springboot/load-test/run-load-test-native.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
STACK_NAME=springboot-sample-native
STACK_NAME=springboot-native

API_URL=$(aws cloudformation describe-stacks --stack-name $STACK_NAME \
--query 'Stacks[0].Outputs[?OutputKey==`ApiEndpoint`].OutputValue' \
Expand Down
Loading