javaperformancebenchmarkingcaliper

Get logarithmic benchmark runtime from Caliper


I've recently discovered the Caliper benchmark framework for Java which seems like a very useful tool for microbenchmarks. I'm using it to run microbenchmarks for my vector maths library (vectorz)

However the standard "SimpleBenchmark" output gives a linear runtime chart which is not very useful if you have very different execution times:

        benchmark     ns linear runtime
  Vector3Addition   1.04 =
  Matrix3Rotation   4.92 =
VectorAddMultiple   6.29 =
    MatrixInverse 955.27 ==============================

How do you configure Caliper to output logarithmic runtime in the chart?

I'm running Caliper via code rather than from the command line: source code here


Solution

  • Caliper dropped support for logarithmic result display quite early in development. You can still get it in the web app by clicking linear runtime to toggle.