Get logarithmic benchmark runtime from Caliper

197 Views Asked by At

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

1

There are 1 best solutions below

2
Jesse Wilson On BEST ANSWER

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.