diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c310ef..c79776f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/app/build.gradle.kts b/app/build.gradle.kts index af1ddc6..522971a 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -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(