You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/java-stream-benchmark/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ This demo contains the code for a simple Java Stream benchmark designed to run o
5
5
6
6
1. Download and install the GraalVM JDK using [SDKMAN!](https://sdkman.io/). For other installation options, visit the [Downloads page](https://www.graalvm.org/downloads/).
7
7
```bash
8
-
sdk install java 23.0.1-graal
8
+
sdk install java 25-graal
9
9
```
10
10
11
11
2. Download or clone the repository and navigate into the benchmark directory:
@@ -50,14 +50,14 @@ Read more in [this blog post](https://blogs.oracle.com/java/post/including-the-g
50
50
51
51
1. Switch the JVM from GraalVM (Oracle GraalVM or Community Edition) to Oracle JDK 23 or higher. You can quickly do that with using [SDKMAN!](https://sdkman.io/):
52
52
```bash
53
-
sdk install java 23.0.1-oracle
53
+
sdk install java 25-oracle
54
54
```
55
55
56
56
2. Run this benchmark with the Graal JIT compiler enabled. For that, pass the `-XX:+UseGraalJIT` option to `java`:
> To switch between JVMs in the same terminal window (without affecting the global setting), use the `sdk` tool. For example, to switch back to Oracle GraalVM for JDK 23, run: `sdk use java 23.0.1-graal`.
61
+
> To switch between JVMs in the same terminal window (without affecting the global setting), use the `sdk` tool. For example, to switch back to Oracle GraalVM for JDK 25, run: `sdk use java 25-graal`.
62
62
63
63
Learn more about the Graal JIT compiler from [its official documentation](https://www.graalvm.org/reference-manual/java/compiler/).
Copy file name to clipboardExpand all lines: native-image/benchmark/jmh/binary-tree/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Binary Tree Benchmark
1
+
# Binary Tree Benchmark
2
2
3
3
This demo shows how to run a Java Microbenchmark Harness (JMH) benchmark as a native executable.
4
4
@@ -20,7 +20,7 @@ This forking process is not possible with GraalVM Native Image and you should co
20
20
21
21
1. Download and install the GraalVM JDK using [SDKMAN!](https://sdkman.io/). For other installation options, visit the [Downloads page](https://www.graalvm.org/downloads/).
22
22
```bash
23
-
sdk install java 21.0.5-graal
23
+
sdk install java 21.0.8-graal
24
24
```
25
25
26
26
2. Download or clone the repository and navigate into the _/native-image/benchmark/jmh/binary-tree_ directory:
@@ -38,7 +38,7 @@ To build and run the benchmark on HotSpot, run the following Maven command:
38
38
./mvnw clean package exec:exec
39
39
```
40
40
41
-
Note that within the _pom.xml_ file there are instructions to explicitly turn off the Graal JIT compiler using the option `-XX:-UseJVMCICompiler`.
41
+
Note that within the _pom.xml_ file there are instructions to explicitly turn off the Graal JIT compiler using the option `-XX:-UseJVMCICompiler`.
42
42
This means that benchmark will run using the C2 JIT compiler.
43
43
44
44
The application runs the benchmark and displays the results to the terminal.
@@ -58,7 +58,7 @@ This demo uses Oracle GraalVM Native Image, however, if you are using GraalVM Co
58
58
```shell
59
59
./mvnw package -Pnative
60
60
```
61
-
2. Run the benchmark from a native executable:
61
+
2. Run the benchmark from a native executable:
62
62
```shell
63
63
./target/benchmark-binary-tree
64
64
```
@@ -70,12 +70,12 @@ This demo uses Oracle GraalVM Native Image, however, if you are using GraalVM Co
70
70
71
71
## Optimize the Benchmark for Throughput
72
72
73
-
You can improve the performance of this benchmark by applying [Profile-Guided Optimization (PGO)](https://www.graalvm.org/reference-manual/native-image/optimizations-and-performance/PGO/).
73
+
You can improve the performance of this benchmark by applying [Profile-Guided Optimization (PGO)](https://www.graalvm.org/reference-manual/native-image/optimizations-and-performance/PGO/).
74
74
75
75
> PGO is available with Oracle GraalVM Native Image.
76
76
77
77
First, you will need to build an instrumented version of this native benchmark that contains extra code to trace the execution of the program and to profile it.
78
-
Therefore, it will run slower than the previous version.
78
+
Therefore, it will run slower than the previous version.
79
79
After execution finishes, a profile file, _default.iprof_, is generated in the root directory.
80
80
This file contains profiling information about the application and will be used to build a more efficient native executable.
Copy file name to clipboardExpand all lines: native-image/clouds/native-aws-lambda/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
GraalVM on AWS Lambda Demo
2
2
====================
3
-
This demo will walk you through the processes for deploying both Java 17 and Native Image applications onto the AWS Lambda platform. In this demo, you will deploy a simple "Hello World" HTTP application and have the ability to compare how the versions of the application compare based on speed and size.
3
+
This demo will walk you through the processes for deploying both Java 21 and Native Image applications onto the AWS Lambda platform. In this demo, you will deploy a simple "Hello World" HTTP application and have the ability to compare how the versions of the application compare based on speed and size.
4
4
5
5
Prerequisites
6
6
----------------------
@@ -40,7 +40,7 @@ public class HomeController {
40
40
41
41
This code implements the actual RESTful "Hello World" functionality and is the code that snippet which is executed when a request is made to Lambda function. It produces the "Hello World" string when a GET request is made to the function's URL.
42
42
43
-
Deploying as a Java 17 Application (.jar)
43
+
Deploying as a Java 21 Application (.jar)
44
44
----------------------
45
45
1. Navigate to the directory for this demo:
46
46
```sh
@@ -55,7 +55,7 @@ cd graalvm-demos/native-aws-lambda
55
55
56
56

57
57
58
-
5. Select “Author from scratch”, choose a name for your function, select “Java 17” as the runtime, and select “x86_64” as the architecture, then click the "Create function" button
58
+
5. Select “Author from scratch”, choose a name for your function, select “Java 21 as the runtime, and select “x86_64” as the architecture, then click the "Create function" button
0 commit comments