File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed
src/test/java/org/cryptomator/siv Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -18,18 +18,22 @@ public class BenchmarkTest {
18
18
19
19
@ Test
20
20
public void runBenchmarks () throws RunnerException {
21
- // Taken from http://stackoverflow.com/a/30486197/4014509:
22
- Options opt = new OptionsBuilder ()
23
- // Specify which benchmarks to run
24
- .include (getClass ().getPackage ().getName () + ".*Benchmark.*" )
25
- // Set the following options as needed
26
- .threads (2 ).forks (2 ) //
27
- .shouldFailOnError (true ).shouldDoGC (true )
28
- // .jvmArgs("-XX:+UnlockDiagnosticVMOptions", "-XX:+PrintInlining")
29
- // .addProfiler(WinPerfAsmProfiler.class)
30
- .build ();
21
+ if (System .getProperty ("java.version" ).startsWith ("1.8" )) {
22
+ // Taken from http://stackoverflow.com/a/30486197/4014509:
23
+ Options opt = new OptionsBuilder ()
24
+ // Specify which benchmarks to run
25
+ .include (getClass ().getPackage ().getName () + ".*Benchmark.*" )
26
+ // Set the following options as needed
27
+ .threads (2 ).forks (2 ) //
28
+ .shouldFailOnError (true ).shouldDoGC (true )
29
+ // .jvmArgs("-XX:+UnlockDiagnosticVMOptions", "-XX:+PrintInlining")
30
+ // .addProfiler(WinPerfAsmProfiler.class)
31
+ .build ();
31
32
32
- new Runner (opt ).run ();
33
+ new Runner (opt ).run ();
34
+ } else {
35
+ System .out .println ("Skipping Benchmarks" );
36
+ }
33
37
}
34
38
35
39
}
You can’t perform that action at this time.
0 commit comments