[ 
https://issues.apache.org/jira/browse/CAMEL-17019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445295#comment-17445295
 ] 

Daniel Kulp commented on CAMEL-17019:
-------------------------------------

I did some more testing and it looks like it's just the JDK/JIT ramp up time.   
If I increase the count in the test to 2000 (to make sure the JIT triggers) and 
copy the enter testMock() method to a second testMock2() method (so the entire 
test runs twice), you can see that the first run is definitely longer on Java11 
than Java8 with both Camel 3.11.1 and 2.24.2.   However, the second run is very 
close between Java11 and Java8.   

> Performance difference between camel-xslt 2.24.2 & 3.11.1
> ---------------------------------------------------------
>
>                 Key: CAMEL-17019
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17019
>             Project: Camel
>          Issue Type: Task
>          Components: camel-xslt
>    Affects Versions: 3.11.1
>            Reporter: Julien Greffe
>            Priority: Minor
>         Attachments: Screen Shot 2021-11-17 at 10.24.29 AM.png
>
>
> Hello,
> during some performances tests, we noticed a difference between camel-xslt 
> 2.24.2 & 3.11.1.
> Here is a simplified repo to reproduce: 
> https://github.com/jgreffe/camel-perf-xslt-test
> Please execute:
> - using JDK8: {{mvn clean test -Dcamel.test=2.24.2}}
> - using JDK11: {{mvn clean test -Dcamel.test=3.11.1}}
> We have these results:
> {code}
> [INFO] 
> ********************************************************************************
> [INFO] Testing done: testMock(XSLTTest)
> [INFO] Took: 0.295 seconds (295 millis)
> [INFO] 
> ********************************************************************************
> [INFO] Apache Camel 2.24.2 (CamelContext: camel-1) is shutting down
> {code}
> {code}
> [INFO] 
> ********************************************************************************
> [INFO] Testing done: testMock (XSLTTest)
> [INFO] Took: 344ms (344 millis)
> [INFO] 
> ********************************************************************************
> [INFO] Apache Camel 3.11.1 (camel-1) shutting down (timeout:10s)
> {code}
> Do you have an idea of root cause?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to