Skip to content
Merged
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 .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
- '25'
app:
- springboot3
- springboot4
- quarkus3
- quarkus3-spring-compatibility
name: "[jvm-build-test-java${{ matrix.java }}]: ${{ matrix.app }}"
Expand Down Expand Up @@ -70,6 +71,9 @@ jobs:
springboot3)
TARGET_DIR="${{ matrix.app }}/target/springboot3.jar"
;;
springboot4)
TARGET_DIR="${{ matrix.app }}/target/springboot4.jar"
;;
quarkus3)
TARGET_DIR="${{ matrix.app }}/target/quarkus-app/quarkus-run.jar"
;;
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
<module>quarkus3</module>
<module>quarkus3-spring-compatibility</module>
<module>springboot3</module>
<module>springboot4</module>
</modules>
</project>
</project>
43 changes: 34 additions & 9 deletions scripts/perf-lab/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ states:
config.jvm.graalvm.version: 25.0.1-graalce

config.quarkus.version: #3.28.3
config.springboot.version: #3.5.6
config.springboot3.version: #3.5.6
config.springboot4.version: #4.0.0

config.jvm.memory: #-Xmx128m
config.jvm.args: #-XX:+UseNUMA

config.quarkus.native_build_options: #-Dquarkus.native.native-image-xmx=<maximum_memory>
config.springboot.native_build_options:
config.springboot3.native_build_options:
config.springboot4.native_build_options:

config.resources.cpu.app: 0-3
config.resources.cpu.db: 4-6
Expand All @@ -39,7 +41,7 @@ states:
PROFILER_JVM_ARGS:
BASE_JAVA_CMD: ${{APP_CMD_PREFIX}} java ${{config.jvm.memory}} ${{config.jvm.args}} ${{PROFILER_JVM_ARGS}}
TESTS : [test-build, measure-build-times, measure-time-to-first-request, measure-rss, run-load-test]
RUNTIMES: [quarkus3-jvm, quarkus3-native, spring3-jvm, spring3-jvm-aot, spring3-native]
RUNTIMES: [quarkus3-jvm, quarkus3-native, spring3-jvm, spring3-jvm-aot, spring3-native, spring4-jvm, spring4-jvm-aot, spring4-native]
TARGET_URL: http://localhost:8080/fruits
QUARKUS-PLATFORM-ARTIFACT-ID: quarkus-bom
PROJ_REPO_NAME: spring-quarkus-perf-comparison
Expand All @@ -64,23 +66,44 @@ states:
type: jvm
dir: ${{SPRING3_BOOT_DIR}}
updateScript: update-spring-boot-version
updateVersion: ${{config.springboot.version}}
updateVersion: ${{config.springboot3.version}}
buildCmd: "./mvnw clean package -DskipTests"
runCmd: "${{BASE_JAVA_CMD}} -jar ${{SPRING3_BOOT_DIR}}/target/springboot3.jar"
- name: spring3-jvm-aot
type: jvm
dir: ${{SPRING3_BOOT_DIR}}
updateScript: update-spring-boot-version
updateVersion: ${{config.springboot.version}}
updateVersion: ${{config.springboot3.version}}
buildCmd: "./mvnw clean compile spring-boot:process-aot package -DskipTests"
runCmd: "${{BASE_JAVA_CMD}} -Dspring.aot.enabled=true -jar ${{SPRING3_BOOT_DIR}}/target/springboot3.jar"
- name: spring3-native
type: native
dir: ${{SPRING3_BOOT_DIR}}
updateScript: update-spring-boot-version
updateVersion: ${{config.springboot.version}}
buildCmd: "./mvnw clean -Pnative -DskipTests native:compile package ${{config.springboot.native_build_options}}"
updateVersion: ${{config.springboot3.version}}
buildCmd: "./mvnw clean -Pnative -DskipTests native:compile package ${{config.springboot3.native_build_options}}"
runCmd: "${{APP_CMD_PREFIX}} ${{SPRING3_BOOT_DIR}}/target/springboot3 ${{config.jvm.memory}}"
- name: spring4-jvm
type: jvm
dir: ${{SPRING4_BOOT_DIR}}
updateScript: update-spring-boot-version
updateVersion: ${{config.springboot4.version}}
buildCmd: "./mvnw clean package -DskipTests"
runCmd: "${{BASE_JAVA_CMD}} -jar ${{SPRING4_BOOT_DIR}}/target/springboot4.jar"
- name: spring4-jvm-aot
type: jvm
dir: ${{SPRING4_BOOT_DIR}}
updateScript: update-spring-boot-version
updateVersion: ${{config.springboot4.version}}
buildCmd: "./mvnw clean compile spring-boot:process-aot package -DskipTests"
runCmd: "${{BASE_JAVA_CMD}} -Dspring.aot.enabled=true -jar ${{SPRING4_BOOT_DIR}}/target/springboot4.jar"
- name: spring4-native
type: native
dir: ${{SPRING4_BOOT_DIR}}
updateScript: update-spring-boot-version
updateVersion: ${{config.springboot4.version}}
buildCmd: "./mvnw clean -Pnative -DskipTests native:compile package ${{config.springboot4.native_build_options}}"
runCmd: "${{APP_CMD_PREFIX}} ${{SPRING4_BOOT_DIR}}/target/springboot4 ${{config.jvm.memory}}"

scripts:
update-state:
Expand All @@ -90,8 +113,9 @@ scripts:
- set-state: RUN.PROJ_REPO_DIR ${{REPO_DIR}}/${{PROJ_REPO_NAME}}
- set-state: RUN.SCRIPTS_DIR ${{PROJ_REPO_DIR}}/scripts/perf-lab
- set-state: RUN.HELPER_SCRIPTS_DIR ${{SCRIPTS_DIR}}/scripts
- set-state: RUN.SPRING3_BOOT_DIR ${{PROJ_REPO_DIR}}/springboot3
- set-state: RUN.QUARKUS3_DIR ${{PROJ_REPO_DIR}}/quarkus3
- set-state: RUN.SPRING3_BOOT_DIR ${{REPO_DIR}}/${{PROJ_REPO_NAME}}/springboot3
- set-state: RUN.SPRING4_BOOT_DIR ${{REPO_DIR}}/${{PROJ_REPO_NAME}}/springboot4
- set-state: RUN.QUARKUS3_DIR ${{REPO_DIR}}/${{PROJ_REPO_NAME}}/quarkus3
- set-state: RUN.ASYNC_PROFILER_DIR ${{BASE_DIR}}/${{ASYNC_PROFILER}}

output-vars:
Expand All @@ -102,6 +126,7 @@ scripts:
"REPO_DIR: ${{REPO_DIR}}"
"SCRIPTS_DIR: ${{SCRIPTS_DIR}}"
"SPRING3_BOOT_DIR: ${{SPRING3_BOOT_DIR}}"
"SPRING4_BOOT_DIR: ${{SPRING4_BOOT_DIR}}"
"QUARKUS3_DIR : ${{QUARKUS3_DIR}}"
"RUNTIMECMDS: ${{RUNTIMECMDS}}"

Expand Down
Loading
Loading