Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15715

Simple performance regression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.4.4
    • 3.6.0
    • came-core
    • None
    • Unknown

    Description

      Hello everyone,

      We identified a performance drop in Simple expressions in 3.4.4 compared to 2.25.1

      Given the following route

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

      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

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              antoine.dessaigne Antoine DESSAIGNE
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: