This is an automated email from the ASF dual-hosted git repository.
paulk-asert 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 0fb707bea1 add compiler performance to dashboard
0fb707bea1 is described below
commit 0fb707bea1d9460979380ea7a716b9e40a8a058c
Author: Paul King <[email protected]>
AuthorDate: Fri May 15 07:27:23 2026 +1000
add compiler performance to dashboard
---
.../apache/groovy/gradle/PerformanceTestSummary.groovy | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git
a/build-logic/src/main/groovy/org/apache/groovy/gradle/PerformanceTestSummary.groovy
b/build-logic/src/main/groovy/org/apache/groovy/gradle/PerformanceTestSummary.groovy
index 7e52792b51..7aa7ecc737 100644
---
a/build-logic/src/main/groovy/org/apache/groovy/gradle/PerformanceTestSummary.groovy
+++
b/build-logic/src/main/groovy/org/apache/groovy/gradle/PerformanceTestSummary.groovy
@@ -66,8 +66,15 @@ class PerformanceTestSummary extends DefaultTask {
}
def json = versions.collect { id, mean, stdDev ->
+ String series
+ if (id == 'current') {
+ series = 'compile@current'
+ } else {
+ def m = id =~ /^(\d+)\./
+ series = m.find() ? "compile@groovy-${m.group(1)}" :
"compile@${id}"
+ }
[
- name : seriesName(id),
+ name : series,
unit : 'ms',
value: mean,
range: "±${df.format(stdDev)}".toString(),
@@ -78,10 +85,4 @@ class PerformanceTestSummary extends DefaultTask {
out.parentFile.mkdirs()
out.text = JsonOutput.prettyPrint(JsonOutput.toJson(json))
}
-
- private static String seriesName(String id) {
- if (id == 'current') return 'compile@current'
- def m = id =~ /^(\d+)\./
- return m.find() ? "compile@groovy-${m.group(1)}" : "compile@${id}"
- }
}