21 lines
653 B
Java
21 lines
653 B
Java
|
|
package com.benchmark.runner;
|
||
|
|
|
||
|
|
import com.benchmark.benchmarks.DataAccessBenchmark;
|
||
|
|
import org.openjdk.jmh.runner.Runner;
|
||
|
|
import org.openjdk.jmh.runner.options.Options;
|
||
|
|
import org.openjdk.jmh.runner.options.OptionsBuilder;
|
||
|
|
|
||
|
|
public class BenchmarkMain {
|
||
|
|
|
||
|
|
public static void main(String[] args) throws Exception {
|
||
|
|
Options opt = new OptionsBuilder()
|
||
|
|
.include(DataAccessBenchmark.class.getSimpleName())
|
||
|
|
.jvmArgsPrepend(
|
||
|
|
"--enable-native-access=ALL-UNNAMED",
|
||
|
|
"--sun-misc-unsafe-memory-access=allow"
|
||
|
|
)
|
||
|
|
.build();
|
||
|
|
new Runner(opt).run();
|
||
|
|
}
|
||
|
|
}
|