examples
Class DemoBenchmark

java.lang.Object
  extended by com.google.caliper.api.Benchmark
      extended by examples.DemoBenchmark

public class DemoBenchmark
extends com.google.caliper.api.Benchmark


Method Summary
static void main(String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 int timeSomething(int reps)
           
 int timeSomethingElse(int reps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setUp

protected void setUp()
              throws Exception
Overrides:
setUp in class com.google.caliper.api.Benchmark
Throws:
Exception

timeSomething

public int timeSomething(int reps)

timeSomethingElse

public int timeSomethingElse(int reps)

tearDown

protected void tearDown()
                 throws Exception
Overrides:
tearDown in class com.google.caliper.api.Benchmark
Throws:
Exception

main

public static void main(String[] args)


Copyright © 2009-2011 Google, Inc.. All Rights Reserved.