noconnor / JUnitPerf

API performance testing framework built using JUnit
Apache License 2.0
68 stars 18 forks source link

JUnitPerfInterceptorSuite interception approach is drastically slowing the suite #91

Open nagkumar opened 1 year ago

nagkumar commented 1 year ago

Is there a way to reduce the overhead as suite has substantially slowed..

however, did like that it is able to tell the methods that are slower than configured performance parameters..

noconnor commented 1 year ago

Try using ‘totalExecutions’ to run each test for a fix number of iterations instead of for a fixed ‘durationMs’

You could also look into running tests in parallel https://junit.org/junit5/docs/current/user-guide/#writing-tests-parallel-execution