Skip to content

Commit 04ca1da

Browse files
author
jj
committed
Add graalvm to httpserver and httpserver-robago
1 parent 9b55de2 commit 04ca1da

File tree

5 files changed

+68
-2
lines changed

5 files changed

+68
-2
lines changed

frameworks/Java/httpserver-robaho/benchmark_config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,25 @@
3838
"display_name": "httpserver-robaho-postgres",
3939
"notes": "",
4040
"versus": ""
41+
},
42+
"graalvm": {
43+
"json_url": "/json",
44+
"plaintext_url": "/plaintext",
45+
"port": 8080,
46+
"approach": "Realistic",
47+
"classification": "Platform",
48+
"database": "None",
49+
"framework": "None",
50+
"language": "Java",
51+
"flavor": "None",
52+
"orm": "Raw",
53+
"platform": "httpserver",
54+
"webserver": "None",
55+
"os": "Linux",
56+
"database_os": "Linux",
57+
"display_name": "httpserver-robaho-graalvm",
58+
"notes": "",
59+
"versus": "httpserver-robaho"
4160
}
4261
}
4362
]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM jelastic/maven:3.9.9-openjdk-23.0.1-almalinux-9 as maven
2+
WORKDIR /httpserver-robaho
3+
COPY pom.xml pom.xml
4+
COPY src src
5+
RUN mvn compile assembly:single -q
6+
7+
FROM ghcr.io/graalvm/graalvm-community:24
8+
WORKDIR /httpserver-robaho
9+
COPY --from=maven /httpserver-robaho/target/httpserver-robaho-1.0-jar-with-dependencies.jar app.jar
10+
11+
EXPOSE 8080
12+
13+
CMD ["java", "-server", "-jar", "app.jar"]

frameworks/Java/httpserver/benchmark_config.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,25 @@
3838
"display_name": "httpserver-postgres",
3939
"notes": "",
4040
"versus": ""
41+
},
42+
"graalvm": {
43+
"json_url": "/json",
44+
"plaintext_url": "/plaintext",
45+
"port": 8080,
46+
"approach": "Realistic",
47+
"classification": "Platform",
48+
"database": "None",
49+
"framework": "None",
50+
"language": "Java",
51+
"flavor": "None",
52+
"orm": "Raw",
53+
"platform": "httpserver",
54+
"webserver": "None",
55+
"os": "Linux",
56+
"database_os": "Linux",
57+
"display_name": "httpserver-graalvm",
58+
"notes": "",
59+
"versus": "httpserver"
4160
}
4261
}
4362
]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM maven:3-eclipse-temurin-24-alpine as maven
2+
WORKDIR /httpserver
3+
COPY pom.xml pom.xml
4+
COPY src src
5+
RUN mvn compile assembly:single -q
6+
7+
FROM ghcr.io/graalvm/graalvm-community:24
8+
WORKDIR /httpserver
9+
COPY --from=maven /httpserver/target/httpserver-1.0-jar-with-dependencies.jar app.jar
10+
11+
EXPOSE 8080
12+
13+
CMD ["java", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-jar", "app.jar"]

frameworks/Java/httpserver/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13-
<maven.compiler.source>11</maven.compiler.source>
14-
<maven.compiler.target>11</maven.compiler.target>
13+
<maven.compiler.source>21</maven.compiler.source>
14+
<maven.compiler.target>21</maven.compiler.target>
1515
</properties>
1616

1717
<dependencies>
@@ -59,6 +59,8 @@
5959
<version>3.8.0</version>
6060
<configuration>
6161
<debug>false</debug>
62+
<source>21</source>
63+
<target>21</target>
6264
</configuration>
6365
</plugin>
6466
<plugin>

0 commit comments

Comments
 (0)