You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2023/08/09 10:33:05 UTC

[groovy] branch master updated: make it simpler to output jmh results

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 602ddb94c1 make it simpler to output jmh results
602ddb94c1 is described below

commit 602ddb94c152ce1ebe10e064922e88d557141ce5
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Aug 9 20:32:47 2023 +1000

    make it simpler to output jmh results
---
 build-logic/src/main/groovy/org.apache.groovy-performance.gradle | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/build-logic/src/main/groovy/org.apache.groovy-performance.gradle b/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
index b84963666b..0e94917332 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-performance.gradle
@@ -54,6 +54,7 @@ jmh {
     }
     includeTests = true
 }
+
 jmhJar {
     exclude 'LICENSE'
     exclude 'THIRD-PARTY'
@@ -67,6 +68,10 @@ tasks.named('compileJmhGroovy') {
     classpath += compileJmhJava.classpath
 }
 
+tasks.register('displayJmhResults') {
+    println file("$buildDir/results/jmh/results.txt").text
+}
+
 tasks.register("performanceTests", PerformanceTestSummary)
 
 sonarqube {