Guest User

Untitled

a guest
Dec 12th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. import org.junit.Test;
  2.  
  3. import com.carrotsearch.junitbenchmarks.AbstractBenchmark;
  4. import com.carrotsearch.junitbenchmarks.BenchmarkOptions;
  5. import com.carrotsearch.junitbenchmarks.annotation.BenchmarkMethodChart;
  6.  
  7. /**
  8. * @author benelog
  9. */
  10. @BenchmarkMethodChart(filePrefix = "benchmark-sample")
  11. public class SampleBenchmarkTest extends AbstractBenchmark {
  12.  
  13. @Test
  14. @BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 0)
  15. public void test1() {
  16. System.out.println("hello world1");
  17. }
  18.  
  19. @Test
  20. @BenchmarkOptions(benchmarkRounds = 3, warmupRounds = 0)
  21. public void test2() {
  22. System.out.println("hello world2");
  23. }
  24. }
Add Comment
Please, Sign In to add comment