/** * Main method for invoking benchs with classes as strings. * * @param args * the classes * @throws ClassNotFoundException * if class cannot be found * @throws IllegalAccessException * if conf cannot be instantiated * @throws InstantiationException * if conf cannot be instantiated */ public static void main(final String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException { final BenchmarkResult res = runBenchs(args); new TabularSummaryOutput().visitBenchmark(res); } }
/** * This method starts the bench progress with the registered classes. * * @throws SocketViewException */ public boolean runBenchmark() throws SocketViewException { final BenchmarkResult res = benchmark.run(); new TabularSummaryOutput().visitBenchmark(res); view.finished(); return true; }
public final void testVisitBenchmark() { final TabularSummaryOutput output = new TabularSummaryOutput(); output.visitBenchmark(benchRes); final StringBuilder builder = new StringBuilder(); builder
/** * Simple setUp of a benchmark. The {@link Benchmark} is initialized with * two Meters (<code>TimeMeter</code> and <code>MemMeter</code>). Afterwards * the benchmark is running with a TabularOutput as a listener registered. * The result of the benchmark is displayed in a complete table at the end. * * @param args * not used here */ public static void main(String[] args) { final Benchmark bench = new Benchmark(new Config()); bench.add(ListBenchmark.class); final BenchmarkResult res = bench.run(); new TabularSummaryOutput().visitBenchmark(res); }
/** * Simple setUp of a benchmark. The {@link Benchmark} is initialized with * two Meters (<code>TimeMeter</code> and <code>MemMeter</code>). Afterwards * the benchmark is running with a TabularOutput as a listener registered. * The result of the benchmark is displayed in a complete table at the end. * * @param args * not used here */ public static void main(final String[] args) { final Benchmark bench = new Benchmark(new Config()); bench.add(StackBenchmark.class); final BenchmarkResult res = bench.run(); new TabularSummaryOutput().visitBenchmark(res); }
public static void main (String[] args) { Benchmark benchmark = new Benchmark(); benchmark.add(StorageBench.class); BenchmarkResult res = benchmark.run(); TabularSummaryOutput tab = new TabularSummaryOutput(); tab.visitBenchmark(res); }