Execution of fixture methods in the case of error during benchmark.
Aleksey Shipilev
shade at redhat.com
Fri Jun 4 10:34:44 UTC 2021
On 6/4/21 11:30 AM, Mehdi Ennaïme wrote:
> I'd like to have some information about the expected behaviour of the
> fixture methods in the case a prior benchmark iteration threw an exception.
Unexpected exception fails the entire trial...
> The logs also seem to indicate that the parameters crossjoin is indeed benched.
> While the parameters values seems to have been updated after a
> "failed" run, the BinaryFunction I use are instantiated within a Setup
> fixture method with the TRIAL level, which is not called anymore after
> the first failure run, meaning the tested function is not
> re-instantiated with the proper parameters, and thus all the trials
> fail beyond that first failure.
...so the subsequent iteration within the trial would not run. The next trial should run (presumably
in newly forked VM), and @Setup(TRIAL) should run the.
If you need more precise answer, please provide the MCVE capturing your case.
--
Thanks,
-Aleksey
More information about the jmh-dev
mailing list