package com.livemykarma.gc.finalizer;

import java.util.concurrent.TimeUnit;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Measurement;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.annotations.OutputTimeUnit;
import org.openjdk.jmh.annotations.Scope;
import org.openjdk.jmh.annotations.State;
import org.openjdk.jmh.annotations.Warmup;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;

@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.NANOSECONDS)
@State(Scope.Thread)
@Warmup(iterations = 5, time = 100, timeUnit = TimeUnit.MILLISECONDS)
@Measurement(iterations = 5, time = 100, timeUnit = TimeUnit.MILLISECONDS)
@Fork(4)
public class SimpleBenchmark {

	@Benchmark
	public NonFinalizableClass testNonFinalizable() {
		 return new NonFinalizableClass();
	}

	@Benchmark
	public FinalizableClass testFinalizable() {
		 return new FinalizableClass();
	}
	
	public static void main(String[] args) throws RunnerException {
        Options opt = new OptionsBuilder()
                .include(SimpleBenchmark.class.getSimpleName())
                .forks(4)
                .threads(40)
                .build();

        new Runner(opt).run();
	}

}

@@ -36,47 +36,8 @@
 r;%0A%0A
-import java.util.concurrent.TimeUnit;%0A%0A
 impo
@@ -105,775 +105,171 @@
 jmh.
-annotations.BenchmarkMode;%0Aimport org.openjdk.jmh.annotations.Fork;%0Aimport org.openjdk.jmh.annotations.Measurement;%0Aimport org.openjdk.jmh.annotations.Mode;%0Aimport org.openjdk.jmh.annotations.OutputTimeUnit;%0Aimport org.openjdk.jmh.annotations.Scope;%0Aimport org.openjdk.jmh.annotations.State;%0Aimport org.openjdk.jmh.annotations.Warmup;%0Aimport org.openjdk.jmh.runner.Runner;%0Aimport org.openjdk.jmh.runner.RunnerException;%0Aimport org.openjdk.jmh.runner.options.Options;%0Aimport org.openjdk.jmh.runner.options.OptionsBuilder;%0A%0A@BenchmarkMode(Mode.AverageTime)%0A@OutputTimeUnit(TimeUnit.NANOSECONDS)%0A@State(Scope.Thread)%0A@Warmup(iterations = 5, time = 100, timeUnit = TimeUnit.MILLISECONDS)%0A@Measurement(iterations = 5, time = 100, timeUnit = TimeUnit.MILLISECONDS)%0A@Fork(4)
+runner.Runner;%0Aimport org.openjdk.jmh.runner.RunnerException;%0Aimport org.openjdk.jmh.runner.options.Options;%0Aimport org.openjdk.jmh.runner.options.OptionsBuilder;%0A
 %0Apub
@@ -673,34 +673,8 @@
 ())%0A
-                .forks(4)%0A
     

Remove all advanced stuff