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
- duplicates
-
CAMEL-15587 simple/bean language - performance regression
- Resolved