Created
November 17, 2023 14:53
-
-
Save vietj/2ed0431fecea0d5fd07e14c257c3e4d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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