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

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

Antoine DESSAIGNE created CAMEL-15715:
-----------------------------------------

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


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"/>
        <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}} processor attribute on the {{setHeader}} 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)