Skip to content
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
20 changes: 20 additions & 0 deletions frameworks/Clojure/ring-http-exchange/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,26 @@
"display_name": "ring-http-exchange-robaho-graalvm",
"notes": "",
"versus": "ring-http-exchange-robaho"
},
"robaho-semeru": {
"json_url": "/json",
"plaintext_url": "/plaintext",
"fortune_url": "/fortunes",
"port": 8080,
"approach": "Realistic",
"classification": "Platform",
"database": "postgres",
"framework": "None",
"language": "Clojure",
"flavor": "None",
"orm": "Raw",
"platform": "None",
"webserver": "None",
"os": "Linux",
"database_os": "Linux",
"display_name": "ring-http-exchange-robaho-semeru",
"notes": "",
"versus": "ring-http-exchange-robaho"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM clojure:lein as lein
WORKDIR /ring-http-exchange
COPY project.clj project.clj
COPY resources resources
COPY src src
RUN lein with-profile robaho uberjar

FROM ibm-semeru-runtimes:open-25-jre-jammy
WORKDIR /ring-http-exchange
COPY --from=lein /ring-http-exchange/target/ring-http-server-1.0.0-standalone.jar app.jar

EXPOSE 8080

CMD ["java", "-server", "-XX:+UseParallelGC", "-jar", "app.jar"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@
(def query-fortunes (boa/execute (boa/->NextJdbcAdapter) "fortune.sql"))

(def db-spec {:auto-commit true
:read-only false
:connection-timeout 30000
:read-only true
:connection-timeout 10000
:validation-timeout 5000
:idle-timeout 600000
:max-lifetime 1800000
:minimum-idle 10
:maximum-pool-size 520
:minimum-pool-size 512
:minimum-idle 16
:maximum-pool-size 64
:register-mbeans false
:jdbcUrl "jdbc:postgresql://tfb-database/hello_world?user=benchmarkdbuser&password=benchmarkdbpass"})

Expand Down
8 changes: 4 additions & 4 deletions frameworks/Java/activej/activej.dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM maven:3.6.1-jdk-11-slim as maven

FROM maven:3.9.0-eclipse-temurin-17 as maven
WORKDIR /activej
COPY pom.xml pom.xml
COPY src src
RUN mvn compile assembly:single -q

FROM openjdk:11.0.3-jdk-slim
FROM amazoncorretto:25
WORKDIR /activej
COPY --from=maven /activej/target/activej-server-benchmark-0.0.1-SNAPSHOT-jar-with-dependencies.jar app.jar
CMD ["java", "-Xms2G", "-Xmx2G", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-XX:+AggressiveOpts", "-DHttpServerConnection.initialWriteBufferSize=4096", "-DHttpHeadersMultimap.initialSize=16", "-jar", "app.jar"]
EXPOSE 8080
CMD ["java", "-server", "-XX:+UseParallelGC", "-jar", "app.jar"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY pom.xml pom.xml
COPY src src
RUN mvn package -q -P postgres,jdbi

FROM openjdk:11.0.3-jdk-slim
FROM amazoncorretto:25
WORKDIR /dropwizard
COPY --from=maven /dropwizard/target/hello-world-0.0.1-SNAPSHOT.jar app.jar
COPY hello-world-jdbi-postgres.yml hello-world-jdbi-postgres.yml
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Java/dropwizard/dropwizard-mongodb.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY pom.xml pom.xml
COPY src src
RUN mvn package -q -P mongo

FROM openjdk:11.0.3-jdk-slim
FROM amazoncorretto:25
WORKDIR /dropwizard
COPY --from=maven /dropwizard/target/hello-world-0.0.1-SNAPSHOT.jar app.jar
COPY hello-world-mongo.yml hello-world-mongo.yml
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Java/dropwizard/dropwizard-postgres.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY pom.xml pom.xml
COPY src src
RUN mvn package -q -P postgres

FROM openjdk:11.0.3-jdk-slim
FROM amazoncorretto:25
WORKDIR /dropwizard
COPY --from=maven /dropwizard/target/hello-world-0.0.1-SNAPSHOT.jar app.jar
COPY hello-world-postgres.yml hello-world-postgres.yml
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Java/dropwizard/dropwizard.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ COPY pom.xml pom.xml
COPY src src
RUN mvn package -q -P mysql

FROM openjdk:11.0.3-jdk-slim
FROM amazoncorretto:25
WORKDIR /dropwizard
COPY --from=maven /dropwizard/target/hello-world-0.0.1-SNAPSHOT.jar app.jar
COPY hello-world-mysql.yml hello-world-mysql.yml
Expand Down
12 changes: 5 additions & 7 deletions frameworks/Java/httpserver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,21 @@
<artifactId>postgresql</artifactId>
<version>42.7.2</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>3.3.1</version>
</dependency>

<dependency>
<groupId>com.github.httl</groupId>
<artifactId>httl</artifactId>
<version>1.0.11</version>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.8.0-beta4</version>
</dependency>
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>7.0.2</version>
</dependency>
</dependencies>
<profiles>
<profile>
Expand Down
17 changes: 14 additions & 3 deletions frameworks/Java/httpserver/src/main/java/benchmarks/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,23 @@ private static List<Fortune> queryFortunes(DataSource ds) throws SQLException {
}

private static DataSource createPostgresDataSource() throws ClassNotFoundException {
Class.forName("org.postgresql.Driver");
HikariConfig config = new HikariConfig();

config.setJdbcUrl("jdbc:postgresql://tfb-database:5432/hello_world");
config.setUsername("benchmarkdbuser");
config.setPassword("benchmarkdbpass");
config.setMaximumPoolSize(512);

config.setMaximumPoolSize(64);
config.setMinimumIdle(16);

config.setConnectionTimeout(10000);
config.setIdleTimeout(600000);
config.setMaxLifetime(1800000);

config.setAutoCommit(true);

config.setPoolName("PostgreSQL-HikariCP-Pool");

return new HikariDataSource(config);
}

Expand Down Expand Up @@ -145,4 +156,4 @@ static void main(String[] args) throws Exception {
// start server
server.start();
}
}
}
2 changes: 1 addition & 1 deletion frameworks/Java/voovan/voovan.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY src src
COPY config/framework.properties config/framework.properties
RUN mvn package -q

FROM openjdk:25-ea-slim-bullseye
FROM amazoncorretto:25
WORKDIR /voovan
COPY --from=maven /voovan/target/voovan-bench-0.1-jar-with-dependencies.jar app.jar
COPY --from=maven /voovan/config/framework.properties config/framework.properties
Expand Down
Loading