Porting parts of caliper benchmark to junit benchmark.