Skip to content

Commit

Permalink
update benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
hmottestad committed May 24, 2023
1 parent 319c76d commit fb1f6eb
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
@Warmup(iterations = 5)
@BenchmarkMode({ Mode.AverageTime })
//@Fork(value = 1, jvmArgs = {"-Xms4G", "-Xmx4G", "-XX:+UnlockCommercialFeatures", "-XX:StartFlightRecording=delay=5s,duration=60s,filename=recording.jfr,settings=profile", "-XX:FlightRecorderOptions=samplethreads=true,stackdepth=1024", "-XX:+UnlockDiagnosticVMOptions", "-XX:+DebugNonSafepoints"})
@Fork(value = 1, jvmArgs = { "-Xms4G", "-Xmx4G" })
@Fork(value = 3, jvmArgs = { "-Xms4G", "-Xmx4G" })
@Measurement(iterations = 5)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
public class LoadingBenchmark {
Expand All @@ -67,12 +67,20 @@ public class LoadingBenchmark {
private static final Model realData = getRealData();

public static void main(String[] args) throws RunnerException {
Options opt = new OptionsBuilder()
.include("LoadingBenchmark.*") // adapt to run other benchmark tests
.forks(1)
.build();
// Options opt = new OptionsBuilder()
// .include("LoadingBenchmark.*") // adapt to run other benchmark tests
// .forks(1)
// .build();
//
// new Runner(opt).run();

LoadingBenchmark loadingBenchmark = new LoadingBenchmark();
loadingBenchmark.isolationLevel = "NONE";
for (int i = 0; i < 100; i++) {
System.out.println(i);
loadingBenchmark.loadRealData();
}

new Runner(opt).run();
}

@Benchmark
Expand Down

0 comments on commit fb1f6eb

Please sign in to comment.