Last active
December 19, 2015 10:29
-
-
Save ashkrit/5940752 to your computer and use it in GitHub Desktop.
Auto generated code by JHM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Generated("org.openjdk.jmh.processor.internal.GenerateMicroBenchmarkProcessor") | |
public final class JMHSample_01_HelloWorld { | |
@Threads(1) | |
public Result wellHelloThere_Throughput(Loop loop) throws Throwable { | |
if (!threadId_inited) { | |
threadId = threadSelector.getAndIncrement(); | |
threadId_inited = true; | |
} | |
int groupThreadCount = 1; | |
int groupId = threadId / groupThreadCount; | |
int siblingId = threadId % groupThreadCount; | |
Global global = loop.global; | |
if (0 <= siblingId && siblingId < 1) { | |
JMHSample_01_HelloWorld_jmh l_bench = tryInit_f_bench(new JMHSample_01_HelloWorld_jmh()); | |
BlackHole_jmh l_blackhole = tryInit_f_blackhole(new BlackHole_jmh()); | |
loop.preSetup(); | |
global.announceWarmupReady(); | |
while (global.warmupShouldWait) { | |
l_bench.wellHelloThere(); | |
} | |
loop.enable(); | |
RawResultPair res = wellHelloThere_Throughput_measurementLoop(loop, l_bench, l_blackhole); | |
global.announceWarmdownReady(); | |
while (global.warmdownShouldWait) { | |
l_bench.wellHelloThere(); | |
} | |
loop.preTearDown(); | |
if (loop.isLastIteration()) { | |
} | |
return new OpsPerTimeUnit("wellHelloThere", res.operations, res.time, (loop.timeUnit != null) ? loop.timeUnit : TimeUnit.MILLISECONDS); | |
} else | |
throw new IllegalStateException("Harness failed to distribute threads among groups properly"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment