Hi,

JaCoCo adds a bit of overhead:

1) During class loading (due to instrumentation)
2) During execution (due to added probes)

Normally the overhead is around 10%.

A common problem is when the test are configured to launch a new JVM for every 
test case. This means all classes involved are instrumented again and again. 
You may check the configuration of your test runner whether this is the case.

Cheers,
-marc

> On 19. Jan 2023, at 15:58, Hisham Ismail <hmr.ra...@gmail.com> wrote:
> 
> Hello Everyone,
> 
> Currently, we are using jacoco in one of our projects. We are using it with 
> the maven plugin and the surefire plugin to end the end generate a code 
> coverage report.
> 
> The project's scope is big data which involve lots of parallel computations 
> and multi-threading.
> 
> After enabling jacoco in our build pipelines for each module, we see a 
> massive performance degradation. Examples  
> 
> Running tests with Jacoco took 4.5 hours vs 45 Minutes without Jacoco.
> 
> Can you please consult me on what could potentially be the problem that 
> caused all this performance degradation?
> 
> Thanks in Advance!
> 
> Best Regards,
> Hisham Ismail
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jacoco+unsubscr...@googlegroups.com 
> <mailto:jacoco+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/85452be5-7af3-46c1-83a0-cda9cd9e5894n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/85452be5-7af3-46c1-83a0-cda9cd9e5894n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/6C0E41CD-CA79-4329-91B8-3B834A50E655%40mountainminds.com.

Reply via email to