jgaalen commented on PR #6389:
URL: https://github.com/apache/jmeter/pull/6389#issuecomment-2561932337

   So I've done some benchmarking with this code, comparing it with default 
5.6.3.
   
   
![image](https://github.com/user-attachments/assets/3179ae21-f6b9-4c4d-a99b-3f4649814f87)
   
   Results are surprisingly good! Somehow, the benefit is relatively more on 
cpu rather than memory. 
   
   I've ran a benchmark, running identical JMX script against the same 
environment at the same time. Both doing 100 threads, 300 requests per second. 
It was a recording of 5 transactions of a generic website, with a running time 
of about 80s per threadgroup.
   
   Ran it on 2 separate aws ec2 instances, 2cpu/2gb mem, max heap at 1500m
   
   The one without updated code, did about 15% cpu average during the run, 
while the updated code where we only decompress when the body is actually used 
(assertion/postprocessor), did about 10% on average during the run. Also the 
total memory usage of the VM was about 10% less, meaning the JVM didn't spiked 
as high.
   
   I think it has less impact on memory, because the responseData and 
previousResult gets overwritten every next sampler, so it only holds the latest 
responseData. But not having to decompressing all responses (for nothing) and 
not needing to do much heavier garbage collections, it saves more on cpu usage.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to