Skip to content

Instantly share code, notes, and snippets.

@vietj
Created November 17, 2023 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vietj/2ed0431fecea0d5fd07e14c257c3e4d9 to your computer and use it in GitHub Desktop.
Save vietj/2ed0431fecea0d5fd07e14c257c3e4d9 to your computer and use it in GitHub Desktop.
package org.creekservice.kafka.test.perf.performance;
public class Main {
public static void main(String[] args) throws Exception {
org.openjdk.jmh.Main.main(new String[]{
JsonValidateBenchmark.class.getName() + ".measureDraft_04_Vertx",
"-prof", "async:" +
"libPath=/Users/julien/java/async-profiler-2.9-macos/build/libasyncProfiler.dylib;" +
"output=flamegraph;" +
"dir=/Users/julien/java/json-schema-validation-comparison/build/libs/jmh;" +
"event=alloc;",
// No warmup:
"-wi", "2",
// Single test iteration:
"-i", "3",
// On a single thread:
"-t", "1",
// Running for 1 second
"-r", "10s",
// With forking disabled, i.e. in-process
"-f", "1"
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment