GraalVM - s50600822/Notes GitHub Wiki

https://medium.com/graalvm/graalvm-for-jdk-21-is-here-ee01177dd12d


Verifying https://www.graalvm.org/22.1/examples/java-performance-examples/

Sample System

PS C:\Users\PC> gwmi Win32_OperatingSystem


SystemDirectory : C:\WINDOWS\system32
Organization    :
BuildNumber     : 25217
RegisteredUser  : PC
SerialNumber    : 00330-71290-00002-AAOEM
Version         : 10.0.25217



PS C:\Users\PC> Get-WmiObject Win32_Processor


Caption           : AMD64 Family 23 Model 113 Stepping 0
DeviceID          : CPU0
Manufacturer      : AuthenticAMD
MaxClockSpeed     : 3800
Name              : AMD Ryzen 9 3950X 16-Core Processor
SocketDesignation : AM4



PS C:\Users\PC> Get-WmiObject Win32_PhysicalMemory | Format-Table BankLabel, Capacity, Manufacturer

BankLabel    Capacity Manufacturer
---------    -------- ------------
BANK 0    34359738368 Corsair
BANK 2    34359738368 Corsair

openjdk version "17.0.2" 2022-01-18

PS Z:\> java -version
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
PS Z:\> javac .\CountUppercase.java
PS Z:\> java CountUppercase
1 (140 ms)
2 (113 ms)
3 (88 ms)
4 (71 ms)
5 (33 ms)
6 (30 ms)
7 (35 ms)
8 (30 ms)
9 (31 ms)
total: 0 (636 ms)
PS Z:\> javac .\Blender.java
PS Z:\> java Blender
2058 ms
1568 ms
1588 ms
1561 ms
1585 ms
1552 ms
1599 ms
1579 ms
1581 ms
1565 ms

GraalVM

PS Z:\> C:\graalvm-ce-java17-22.2.0\bin\java -version
openjdk version "17.0.4" 2022-07-19
OpenJDK Runtime Environment GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06)
OpenJDK 64-Bit Server VM GraalVM CE 22.2.0 (build 17.0.4+8-jvmci-22.2-b06, mixed mode, sharing)
PS Z:\> C:\graalvm-ce-java17-22.2.0\bin\javac .\CountUppercase.java
PS Z:\> C:\graalvm-ce-java17-22.2.0\bin\java CountUppercase
1 (93 ms)
2 (101 ms)
3 (70 ms)
4 (61 ms)
5 (26 ms)
6 (25 ms)
7 (27 ms)
8 (23 ms)
9 (24 ms)
total: 0 (478 ms)
PS Z:\> C:\graalvm-ce-java17-22.2.0\bin\javac .\Blender.java
PS Z:\> C:\graalvm-ce-java17-22.2.0\bin\java Blender
685 ms
633 ms
655 ms
672 ms
633 ms
604 ms
683 ms
696 ms
654 ms
625 ms