Package org.openjdk.jmh.generators.core
Class BenchmarkGenerator
java.lang.Object
org.openjdk.jmh.generators.core.BenchmarkGenerator
Benchmark generator.
Benchmark generator is the agnostic piece of code which generates
synthetic Java code for JMH benchmarks. GeneratorSource is
used to feed the generator with the required metadata.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete(GeneratorSource source, GeneratorDestination destination) Finish generating the benchmarks.voidgenerate(GeneratorSource source, GeneratorDestination destination) Execute the next phase of benchmark generation.
-
Field Details
-
JMH_GENERATED_SUBPACKAGE
- See Also:
-
-
Constructor Details
-
BenchmarkGenerator
public BenchmarkGenerator()
-
-
Method Details
-
generate
Execute the next phase of benchmark generation. Multiple calls to this method are acceptable, even with the difference sources- Parameters:
source- generator source to get the metadata fromdestination- generator destination to write the results to
-
complete
Finish generating the benchmarks. Must be called at the end of generation.- Parameters:
source- source generator to usedestination- generator destination to write the results to
-