@BenchmarkHistoryChart(labelWith = LabelType.CUSTOM_KEY, maxRuns = 20) public class UniformBitmapBenchmarkTest extends BitmapBenchmark
/** * Update min/max fields. */ public void updateMinMax(AxisRange r) { if (Double.isNaN(this.min)) this.min = r.min(); if (!Double.isNaN(r.min())) { this.min = Math.min(r.min(), this.min); } if (Double.isNaN(this.max)) this.max = r.max(); if (!Double.isNaN(r.max())) { this.max = Math.max(r.max(), this.max); } } }
public void generate(DbConsumer c) throws Exception { for (Class<?> clazz : types) { MethodChartGenerator g = new MethodChartGenerator( GeneratorUtils.getFilePrefix( clazz, clazz.getAnnotation(BenchmarkMethodChart.class).filePrefix(), c.getChartsDir()), clazz.getName(), c); AxisRange ann = clazz.getAnnotation(AxisRange.class); if (ann != null) { g.min = ann.min(); g.max = ann.max(); } g.generate(); } }
GeneratorUtils.getFilePrefix(clazz, ann.filePrefix(), c.getChartsDir()), clazz.getName(), ann.labelWith(), c); gen.updateMaxRuns(ann.maxRuns()); updateMinMax(clazz.getAnnotation(AxisRange.class), gen); gen.generate(); String prefix = GeneratorUtils.getFilePrefix(clazz, methodAnn.filePrefix(), c.getChartsDir()); if (!byPrefix.containsKey(prefix)) byPrefix.remove(GeneratorUtils.getFilePrefix(clazz, ann.filePrefix(), c.getChartsDir())); e2.getKey(), clazz.getName(), e2.getValue().get(0).getAnnotation(BenchmarkHistoryChart.class).labelWith(), c); gen.updateMaxRuns(m.getAnnotation(BenchmarkHistoryChart.class).maxRuns()); updateMinMax(m.getAnnotation(AxisRange.class), gen); gen.includeMethod(m.getName());
@AxisRange(min = 0, max = 1) @BenchmarkMethodChart(filePrefix = "gremlin-executor") @BenchmarkHistoryChart(labelWith = LabelType.CUSTOM_KEY, maxRuns = 20, filePrefix = "hx-gremlin-executor") @Deprecated public class GremlinExecutorPerformanceTest extends AbstractGremlinTest {
public void generate(DbConsumer c) throws Exception { for (Class<?> clazz : types) { MethodChartGenerator g = new MethodChartGenerator( GeneratorUtils.getFilePrefix( clazz, clazz.getAnnotation(BenchmarkMethodChart.class).filePrefix(), c.getChartsDir()), clazz.getName(), c); AxisRange ann = clazz.getAnnotation(AxisRange.class); if (ann != null) { g.min = ann.min(); g.max = ann.max(); } g.generate(); } }
GeneratorUtils.getFilePrefix(clazz, ann.filePrefix(), c.getChartsDir()), clazz.getName(), ann.labelWith(), c); gen.updateMaxRuns(ann.maxRuns()); updateMinMax(clazz.getAnnotation(AxisRange.class), gen); gen.generate(); String prefix = GeneratorUtils.getFilePrefix(clazz, methodAnn.filePrefix(), c.getChartsDir()); if (!byPrefix.containsKey(prefix)) byPrefix.remove(GeneratorUtils.getFilePrefix(clazz, ann.filePrefix(), c.getChartsDir())); e2.getKey(), clazz.getName(), e2.getValue().get(0).getAnnotation(BenchmarkHistoryChart.class).labelWith(), c); gen.updateMaxRuns(m.getAnnotation(BenchmarkHistoryChart.class).maxRuns()); updateMinMax(m.getAnnotation(AxisRange.class), gen); gen.includeMethod(m.getName());
@BenchmarkHistoryChart(labelWith = LabelType.CUSTOM_KEY, maxRuns = 20) public class RangeBitmapBenchmarkTest extends BitmapBenchmark
/** * Update min/max fields. */ public void updateMinMax(AxisRange r) { if (Double.isNaN(this.min)) this.min = r.min(); if (!Double.isNaN(r.min())) { this.min = Math.min(r.min(), this.min); } if (Double.isNaN(this.max)) this.max = r.max(); if (!Double.isNaN(r.max())) { this.max = Math.max(r.max(), this.max); } } }
@Category({Benchmark.class}) @BenchmarkHistoryChart(labelWith = LabelType.CUSTOM_KEY, maxRuns = 20) public class UniformBitmapBenchmarkTest extends BitmapBenchmark
@Category({Benchmark.class}) @BenchmarkHistoryChart(labelWith = LabelType.CUSTOM_KEY, maxRuns = 20) public class RangeBitmapBenchmarkTest extends BitmapBenchmark