Add JMH data access benchmark app

This commit is contained in:
Mikhail Yevchenko
2026-04-05 14:31:17 +00:00
commit f4ed92b415
15 changed files with 533 additions and 0 deletions
@@ -0,0 +1,20 @@
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();
}
}