public class CodeGenerationBenchmark extends Object
The benchmark examines the behavior of existing methods and evaluates the potential of adding a caching layer on top.
| Modifier and Type | Class and Description |
|---|---|
static class |
CodeGenerationBenchmark.CacheState
State holding a cache that is initialized
once at the beginning of each iteration.
|
private static class |
CodeGenerationBenchmark.PlanInfo |
static class |
CodeGenerationBenchmark.QueryState
State holding the generated queries/plans and additional information
exploited by the embedded compiler in order to dynamically build a Java class.
|
| Constructor and Description |
|---|
CodeGenerationBenchmark() |
| Modifier and Type | Method and Description |
|---|---|
Bindable<?> |
getBindableNoCache(CodeGenerationBenchmark.QueryState state)
Benchmarks the part creating Bindable instances from
EnumerableInterpretable.getBindable(ClassDeclaration, String, int)
method without any additional caching layer. |
Bindable<?> |
getBindableWithCache(CodeGenerationBenchmark.QueryState jState,
CodeGenerationBenchmark.CacheState chState)
Benchmarks the part of creating Bindable instances from
EnumerableInterpretable.getBindable(ClassDeclaration, String, int)
method with an additional cache layer. |
static void |
main(String[] args) |
public Bindable<?> getBindableNoCache(CodeGenerationBenchmark.QueryState state) throws Exception
EnumerableInterpretable.getBindable(ClassDeclaration, String, int)
method without any additional caching layer.Exceptionpublic Bindable<?> getBindableWithCache(CodeGenerationBenchmark.QueryState jState, CodeGenerationBenchmark.CacheState chState) throws Exception
EnumerableInterpretable.getBindable(ClassDeclaration, String, int)
method with an additional cache layer.Exceptionpublic static void main(String[] args) throws org.openjdk.jmh.runner.RunnerException
org.openjdk.jmh.runner.RunnerExceptionCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.