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.

The 0.5 release is a little rough around the edges, but we have already found it quite useful, and the API will stay mostly 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