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

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

I don't think this is an issue in Camel but more of an issue with the XSLT 
transform engine in the JDK.  If you run with 3.11.1 and JDK8 (the xslt 
component in Camel 3.11 still works with Java8 for now), you see a similar 
performance difference which implies it's JDK related, not Camel.    My gut 
feeling is all the "Secure Processing" stuff add to the JDK for XML 
processing/parsing/etc... has caused a bit of a performance degradation to 
increase security.     I'm not 100% sure on that yet, but it does look like 
this isn't strictly a Camel issue. 

> 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
>
> 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