package me.champeau.gradle.jmh.sample;

import org.openjdk.jmh.annotations.Benchmark;

public class SampleBenchmark {

    @Benchmark
    public double sqrtBenchmark(){
        // return prevents dead code removal!
        return Math.sqrt(3.0);
    }
}

@@ -110,16 +110,48 @@
 chmark %7B
+%0A    private double value = 3.0;
 %0A%0A    @B
@@ -198,54 +198,8 @@
 ()%7B%0A
-        // return prevents dead code removal!%0A
     
@@ -219,19 +219,21 @@
 th.sqrt(
-3.0
+value
 );%0A    %7D

Fix sample benchmark code