[
https://issues.apache.org/jira/browse/GROOVY-10709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17578748#comment-17578748
]
Paul King commented on GROOVY-10709:
------------------------------------
[~blackdrag] The source is sketched out in an earlier comment. I haven't
published a repo as yet. I'll do that shortly. At the moment it uses gradle to
build the class files - I was just manually switching between Groovy versions,
building the classes and collecting the classes and jarring by hand. I was
using mvn to build a benchmark jar and just running that by hand. Wrt to the
Groovy4 timing. Yes, it seems slow. The example is solely looking at an example
where the method doesn't exist and so MOP invokeMethod would take over. This
seemed to be a place of big change in the earlier flamegraph. So it's a very
specific microbenchmark.
[~DPUkyle] I was also using JDK11 targeting Java 8 bytecode. I used 3.0.12 indy
and classic and either 4.0.4 or 4.0.5-SNAPSHOT Groovy versions.
> Performance regression in Gradle with Groovy 4
> ----------------------------------------------
>
> Key: GROOVY-10709
> URL: https://issues.apache.org/jira/browse/GROOVY-10709
> Project: Groovy
> Issue Type: Bug
> Affects Versions: 4.0.3
> Reporter: Kyle Moore
> Assignee: Paul King
> Priority: Major
> Fix For: 4.0.5
>
> Attachments: test-results-largeAndroidBuildPerformanceAdHocTest.zip
>
>
> The Gradle team is exploring Groovy 4 as the included version for our next
> major release.
> Our initial performance tests show a significant regression which may be
> caused by excessive method calls to generate specialized exceptions that
> don't have stacks.
> I will attach a tome of performance data comparing Gradle built with Groovy
> 3.0.11 vs. 4.0.3. Interesting measurements are available at:
> *
> run-help/7.6-20220727093039+0000/diffs/run-help-7.6-20220727093039+0000-vs-7.5-cpu-simplified-backward-diff-flames.svg
> * performance-tests/report/index.html -> comparing "Gradle 7.5" vs. "Current
> Gradle" shows a significant regression.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)