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
4 changes: 4 additions & 0 deletions frameworks/Java/quarkus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ There are currently 2 implementations:

./tfb --mode verify --test quarkus quarkus-hibernate-reactive

After the database container image is created, it can be started independently.

docker run -d --name tfb-database -e POSTGRES_DB=hello_world -e POSTGRES_PASSWORD=benchmarkdbpass -e POSTGRES_USER=benchmarkdbuser -p 5432:5432 techempower/postgres:latest

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, why do you need that ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was convenient to have the database started as tfb would do it, while running the Quarkus server in dev mode.

## Versions

* [Java OpenJDK 17](http://openjdk.java.net/)
Expand Down
22 changes: 15 additions & 7 deletions frameworks/Java/quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<packaging>pom</packaging>

<properties>
<compiler-plugin.version>3.14.0</compiler-plugin.version>
<maven.compiler.release>21</maven.compiler.release>
<compiler-plugin.version>3.15.0</compiler-plugin.version>
<maven.compiler.release>25</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>3.21.2</quarkus.platform.version>
<quarkus.platform.version>3.32.2</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.5.2</surefire-plugin.version>
<surefire-plugin.version>3.5.4</surefire-plugin.version>
<!-- Check https://github.com/netty/netty-incubator-transport-io_uring/tags -->
<netty.io_uring.version>0.0.26.Final</netty.io_uring.version>
<rocker.version>1.3.0</rocker.version>
Expand Down Expand Up @@ -61,6 +61,16 @@
</dependencyManagement>

<build>
<!--Required during the upgrade to Quarkus 3.32.2-->
<!--Otherwise, the container image build fails with:-->
<!--Could not find artifact io.netty:netty-transport-native-unix-common:jar:${os.detected.name}-${os.detected.arch}:4.1.130.Final in central-->
<extensions>
<extension>
<groupId>kr.motd.maven</groupId>
<artifactId>os-maven-plugin</artifactId>
<version>1.7.1</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
Expand All @@ -81,9 +91,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
<parameters>true</parameters>
</configuration>
</plugin>
<plugin>
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Java/quarkus/quarkus-hibernate-reactive.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/openjdk-21:1.22 as maven
FROM registry.access.redhat.com/ubi9/openjdk-25:1.24 as maven
ENV LANGUAGE='en_US:en'

WORKDIR /quarkus
Expand Down Expand Up @@ -29,7 +29,7 @@ WORKDIR /quarkus/$MODULE
RUN mvn package -B -q
WORKDIR /quarkus

FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.22
FROM registry.access.redhat.com/ubi9/openjdk-25-runtime:1.24
ENV LANGUAGE='en_US:en'
WORKDIR /quarkus
ENV MODULE=resteasy-reactive-hibernate-reactive
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/openjdk-21:1.22 as maven
FROM registry.access.redhat.com/ubi9/openjdk-25:1.24 as maven
ENV LANGUAGE='en_US:en'

WORKDIR /quarkus
Expand Down Expand Up @@ -29,7 +29,7 @@ WORKDIR /quarkus/$MODULE
RUN mvn package -B -q
WORKDIR /quarkus

FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.22
FROM registry.access.redhat.com/ubi9/openjdk-25-runtime:1.24
ENV LANGUAGE='en_US:en'
WORKDIR /quarkus
ENV MODULE=reactive-routes-pgclient
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Java/quarkus/quarkus-vertx.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/openjdk-21:1.22 as maven
FROM registry.access.redhat.com/ubi9/openjdk-25:1.24 as maven
ENV LANGUAGE='en_US:en'

WORKDIR /quarkus
Expand Down Expand Up @@ -29,7 +29,7 @@ WORKDIR /quarkus/$MODULE
RUN mvn package -B -q
WORKDIR /quarkus

FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.22
FROM registry.access.redhat.com/ubi9/openjdk-25-runtime:1.24
ENV LANGUAGE='en_US:en'
WORKDIR /quarkus
ENV MODULE=vertx
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Java/quarkus/quarkus.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/openjdk-21:1.22 as maven
FROM registry.access.redhat.com/ubi9/openjdk-25:1.24 as maven
ENV LANGUAGE='en_US:en'

WORKDIR /quarkus
Expand Down Expand Up @@ -29,7 +29,7 @@ WORKDIR /quarkus/$MODULE
RUN mvn package -B -q
WORKDIR /quarkus

FROM registry.access.redhat.com/ubi9/openjdk-21-runtime:1.22
FROM registry.access.redhat.com/ubi9/openjdk-25-runtime:1.24
ENV LANGUAGE='en_US:en'
WORKDIR /quarkus
ENV MODULE=resteasy-reactive-hibernate
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Java/quarkus/reactive-routes-pgclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.0.0-jre</version>
<version>32.0.1-jre</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
Expand Down Expand Up @@ -75,7 +75,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.0.0-jre</version>
<version>32.0.1-jre</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.0.0-jre</version>
<version>32.0.1-jre</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ quarkus.hibernate-orm.second-level-caching-enabled=false

#quarkus.vertx.storage=false

quarkus.hibernate-orm.log.sql=false

quarkus.log.console.enable=true
quarkus.log.console.level=INFO
quarkus.log.file.enable=false
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Java/quarkus/resteasy-reactive-hibernate/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.0.0-jre</version>
<version>32.0.1-jre</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
Expand Down Expand Up @@ -79,7 +79,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.0.0-jre</version>
<version>32.0.1-jre</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
package io.quarkus.benchmark.repository;

import io.quarkus.benchmark.model.World;
import io.quarkus.benchmark.utils.LocalRandom;
import io.quarkus.benchmark.utils.Randomizer;
import jakarta.inject.Inject;
import jakarta.inject.Singleton;
import jakarta.transaction.Transactional;

import org.hibernate.FlushMode;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.StatelessSession;

import io.quarkus.benchmark.model.World;
import io.quarkus.benchmark.utils.LocalRandom;
import io.quarkus.benchmark.utils.Randomizer;

@Singleton
public class WorldRepository {

Expand Down Expand Up @@ -59,9 +55,8 @@ public World[] updateNWorlds(final int count) {
//We're again forced to use the "individual load" pattern by the rules:
final World[] list = loadNWorlds(count);
final LocalRandom random = Randomizer.current();
try (Session s = sf.openSession()) {
try (StatelessSession s = sf.openStatelessSession()) {
s.setJdbcBatchSize(count);
s.setHibernateFlushMode(FlushMode.MANUAL);
for (World w : list) {
//Read the one field, as required by the following rule:
// # vi. At least the randomNumber field must be read from the database result set.
Expand All @@ -71,7 +66,6 @@ public World[] updateNWorlds(final int count) {
w.setRandomNumber(random.getNextRandomExcluding(previousRead));
s.update(w);
}
s.flush();
}
return list;
}
Expand Down
6 changes: 3 additions & 3 deletions frameworks/Java/quarkus/vertx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</dependency>
<dependency>
<groupId>com.ongres.scram</groupId>
<artifactId>client</artifactId>
<artifactId>scram-client</artifactId>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
Expand All @@ -40,7 +40,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.0.0-jre</version>
<version>32.0.1-jre</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
Expand Down Expand Up @@ -75,7 +75,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>32.0.0-jre</version>
<version>32.0.1-jre</version>
</dependency>
</dependencies>
</plugin>
Expand Down
Loading