public class BenchmarkGenerator extends Object
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.
Constructor and Description |
---|
BenchmarkGenerator() |
Modifier and Type | Method and Description |
---|---|
void |
complete(GeneratorSource source,
GeneratorDestination destination)
Finish generating the benchmarks.
|
void |
generate(GeneratorSource source,
GeneratorDestination destination)
Execute the next phase of benchmark generation.
|
public void generate(GeneratorSource source, GeneratorDestination destination)
source
- generator source to get the metadata fromdestination
- generator destination to write the results topublic void complete(GeneratorSource source, GeneratorDestination destination)
source
- source generator to usedestination
- generator destination to write the results toCopyright © 2020. All rights reserved.