CI: run JMH benchmark

This commit is contained in:
Daniel Langbein 2025-01-29 17:03:04 +01:00
parent 1b944c38f0
commit acbefbe554
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 15 additions and 2 deletions

View File

@ -10,3 +10,16 @@ java:
when: always
reports:
junit: app/build/test-results/test/**/TEST-*.xml
expire_in: 6 month
jmh:
image: alpine:latest
stage: test
script:
- apk --no-cache add openjdk23 gradle --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing/
- gradle jmh --no-daemon
# https://docs.gitlab.com/ee/ci/jobs/job_artifacts.html
artifacts:
paths:
- app/build/reports/jmh/*
expire_in: 6 month

View File

@ -97,9 +97,9 @@ jmh {
forceGC = true
// If human output is saved, it won't be written to stdout while running the benchmark!
//humanOutputFile = project.file("${project.layout.buildDirectory.get()}/reports/jmh/human.txt")
humanOutputFile = project.file("${project.layout.buildDirectory.get()}/reports/jmh/human.txt")
resultsFile = project.file("${project.layout.buildDirectory.get()}/reports/jmh/results.txt")
resultsFile = project.file("${project.layout.buildDirectory.get()}/reports/jmh/results.csv")
resultFormat = "CSV"
excludes = listOf(