You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/10/20 19:45:00 UTC

[jira] [Commented] (CAMEL-15715) Simple performance regression

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

Claus Ibsen commented on CAMEL-15715:
-------------------------------------

Camel 3.6 has some optimizations and improvements to make this fast. Camel 3.7 is the next LTS which is planned for December. Camel 3.4.x will not have any changes in this regard.

> Simple performance regression
> -----------------------------
>
>                 Key: CAMEL-15715
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15715
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 3.4.4
>            Reporter: Antoine DESSAIGNE
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.6.0
>
>
> Hello everyone,
> We identified a performance drop in Simple expressions in 3.4.4 compared to 2.25.1
> Given the following route
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <routes xmlns="http://camel.apache.org/schema/spring" xmlns:u="http://www.systar.com/aluminium/camel-util">
>     <route>
>         <from uri="timer:foo?delay=-1&repeatCount=1000000"/>
>         <!-- fake data to have something to work with -->
>         <setBody>
>             <groovy>['a', 'b', 'c', 'd']</groovy>
>         </setBody>
>         <setHeader headerName="raw">
>             <simple>${body[2]}</simple>
>         </setHeader>
>         <setHeader headerName="string">
>             <simple resultType="String">${body[2]}</simple>
>         </setHeader>
>         <setHeader headerName="constant">
>             <constant>constant</constant>
>         </setHeader>
>         <to uri="log:throughput?groupInterval=1000"/>
>     </route>
> </routes>
> {code}
> In Camel 3.4.4 I have an average of 10,324 messages per second whereas I have an average of 69,662 messages per second in Camel 2.25.1
> When extracting JMX {{TotalProcessingTime}} attribute on the {{setHeader}} processors here what I have for the 1 million messages
> ||SetHeader||Camel 2.25.1||Camel 3.4.4||
> ||raw|4506|45275|
> ||string|3935|44103|
> ||constant|377|470|
> We're using an OSGi environment but I don't think it has an impact here.
> Can you have a look? What can I do to help?
> Thank you



--
This message was sent by Atlassian Jira
(v8.3.4#803005)