com.google.caliper.Runner Java Examples
The following examples show how to use
com.google.caliper.Runner.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CaliperRunner.java From netty-4.1.22 with Apache License 2.0 | 5 votes |
/** * Publish result on http://microbenchmarks.appspot.com */ public static void publish(final Result result) throws Exception { final Runner runner = new Runner(); final Method method = runner.getClass().getDeclaredMethod( "postResults", Result.class); method.setAccessible(true); method.invoke(runner, result); }
Example #2
Source File: CaliperRunner.java From netty4.0.27Learn with Apache License 2.0 | 5 votes |
/** * Publish result on http://microbenchmarks.appspot.com */ public static void publish(final Result result) throws Exception { final Runner runner = new Runner(); final Method method = runner.getClass().getDeclaredMethod( "postResults", Result.class); method.setAccessible(true); method.invoke(runner, result); }
Example #3
Source File: SerializationBenchmark.java From gson with Apache License 2.0 | 4 votes |
public static void main(String[] args) { Runner.main(SerializationBenchmark.class, args); }
Example #4
Source File: ParseBenchmark.java From gson with Apache License 2.0 | 4 votes |
public static void main(String[] args) throws Exception { Runner.main(ParseBenchmark.class, args); }
Example #5
Source File: BagOfPrimitivesDeserializationBenchmark.java From gson with Apache License 2.0 | 4 votes |
public static void main(String[] args) { Runner.main(BagOfPrimitivesDeserializationBenchmark.class, args); }
Example #6
Source File: CollectionsDeserializationBenchmark.java From gson with Apache License 2.0 | 4 votes |
public static void main(String[] args) { Runner.main(CollectionsDeserializationBenchmark.class, args); }
Example #7
Source File: TestBenchmark.java From benchmarks with Apache License 2.0 | 4 votes |
@Test public void runCacheable() throws Exception { new Runner().run("--trials", "1", CacheableBenchmark.class.getName()); }
Example #8
Source File: TestBenchmark.java From benchmarks with Apache License 2.0 | 4 votes |
@Test public void runInlining() throws Exception { new Runner().run("--trials", "1", InliningBenchmark.class.getName()); }