<div dir="ltr"><div>Hello,</div><div><br></div><div>I decided to have my benchmarks in test resources next to the regular unit tests so I have a structure like: ClassTest.java, ClassBenchmark.java. I'm running benchmarks using following code:<br><div style="background-color:rgb(30,31,34);color:rgb(188,190,196)"><pre style="font-family:"JetBrains Mono",monospace"><span style="color:rgb(207,142,109)">public static void </span><span style="color:rgb(86,168,245)">main</span>(String[] args) <span style="color:rgb(207,142,109)">throws </span>RunnerException {<br>    Options opt = <span style="color:rgb(207,142,109)">new </span>OptionsBuilder()<br>            .include(ClassBenchmark.<span style="color:rgb(207,142,109)">class</span>.getSimpleName())<br>            .addProfiler(StackProfiler.<span style="color:rgb(207,142,109)">class</span>)<br>            <span style="color:rgb(122,126,133)">//.addProfiler(GCProfiler.class)<br></span><span style="color:rgb(122,126,133)">            </span>.build();<br><br>    <span style="color:rgb(207,142,109)">new </span>Runner(opt).run();<br>}</pre></div></div><div>However, when I have a second benchmark, testing different class like Class2Benchmark.java, after recompilation, running the main method for any of the benchmarks results in running all sets of benchmarks from both classes. Both benchmark classes are at the same folder level.<br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:12.8px"><font face="arial, helvetica, sans-serif">Regards</font></span></div><div>Rafał Hiszpański</div><div><br></div><b>AVISPA Software Rafał Hiszpański</b><br><div>NIP: 9591883124</div><div><a href="https://rafalhiszpanski.pl" target="_blank">https://rafalhiszpanski.pl</a></div></div></div></div></div>