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 | Description |
---|---|
BenchmarkGenerator() |
Modifier and Type | Method | 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 © 2012-2016 Oracle. All Rights Reserved.