My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Wiki pages
Links

Caliper is Google's open-source framework for writing, running and viewing the results of JavaMicrobenchmarks.

It is quite rough around the edges (June 2010), but we have already found it quite useful, and the API should be pretty stable.

The simplest complete Caliper benchmark looks like this:

  public class MyBenchmark extends SimpleBenchmark {
    public void timeMyOperation(int reps) {
      for (int i = 0; i < reps; i++) {
        MyClass.myOperation();
      }
    }
  }

Very short tutorial examples.

More introductory examples.

Powered by Google Project Hosting