Package com.google.caliper

Examples of com.google.caliper.Runner


  public static void main(String[] args) {
    new InterfacePerformanceBenchmark().run();
  }

  void run() {
    Runner runner=new Runner();
    runner.run(new String[] {this.getClass().getCanonicalName()});
  }
View Full Code Here


  public static void main(String[] args) {
    new ThreeDBenchmark().run();
  }

  private void run() {
    Runner runner=new Runner();
    runner.run(new String[] {this.getClass().getCanonicalName()});
  }
View Full Code Here

  public static void main(String[] args) {
    new FunctionOverheadBenchmark().run();
  }

  void run() {
    Runner runner=new Runner();
    runner.run(new String[] {this.getClass().getCanonicalName()});
  }
View Full Code Here

  public static void main(String[] args) {
    new InterfaceVsVirtualBenchmark().run();
  }

  private void run() {
    Runner runner=new Runner();
    runner.run(new String[] {this.getClass().getCanonicalName()});
  }
View Full Code Here

  public static void main(String[] args) {
    new TestBenchmark().run();
  }

  private void run() {
    Runner runner=new Runner();
    runner.run(new String[] {this.getClass().getCanonicalName()});
  }
View Full Code Here

    {
        int i = 0;
        for (Class<? extends Benchmark> clz : classes)
        {
            header(clz.getSimpleName() + " (" + (++i) + "/" + classes.size() + ")");
            new Runner().run(ObjectArrays.concat(args, clz.getName()));
        }
    }
View Full Code Here

import com.google.caliper.Runner;

public class AllBenchmarks {

    public static void main(String[] args) {
        new Runner().run(WarmStartupBenchmark.class.getName());
        new Runner().run("-DringSize=1,10,100,1000,10000", "-DroundTrips=1000", RingBenchmark.class.getName());
        System.exit(0);
    }
View Full Code Here

  }

  private static int safeRun( String[] args ) {
    // see caliper.Runner.main( String[] )
    try {
      new Runner().run( args );
      return 0;
    } catch( DisplayUsageException e ) {
      e.display();
      return 0;
    } catch( UserException e ) {
View Full Code Here

    /**
     * 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);
    }
View Full Code Here

TOP

Related Classes of com.google.caliper.Runner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.