package com.uchuhimo.volatilePattern;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;

public class YDependBenchmark {
  @Benchmark
  @BenchmarkMode(Mode.Throughput)
  public void testOnce() {
    new YDepend().testOnce();
  }

  @Benchmark
  @BenchmarkMode(Mode.Throughput)
  public void testAtLeastOnce() {
    new YDepend().testAtLeastOnce();
  }
}

@@ -169,16 +169,178 @@
 s.Mode;%0A
+import org.openjdk.jmh.annotations.OutputTimeUnit;%0A%0Aimport java.util.concurrent.TimeUnit;%0A%0A@BenchmarkMode(Mode.AverageTime)%0A@OutputTimeUnit(TimeUnit.MICROSECONDS)
 %0Apublic 
@@ -381,42 +381,8 @@
 ark%0A
-  @BenchmarkMode(Mode.Throughput)%0A
   pu
@@ -456,42 +456,8 @@
 ark%0A
-  @BenchmarkMode(Mode.Throughput)%0A
   pu

define jmh annotation on class