diff --git a/arebac-neo4j/Benchmarks.md b/arebac-neo4j/Benchmarks.md index 45d0750..72d681b 100644 --- a/arebac-neo4j/Benchmarks.md +++ b/arebac-neo4j/Benchmarks.md @@ -12,7 +12,7 @@ java -cp target/classes:target/test-classes:target/all-dependencies/*:target/are In order to run a single benchmark, the name of the benchmark needs to be added as an additional argument: ```bash -java -cp target/classes:target/test-classes:target/all-dependencies/*:target/arebac-neo4j-0.0.1-SNAPSHOT.jar org.openjdk.jmh.Main io.github.danthe1st.arebac.neo4j.tests.SOBenchmark.gpEval +java -cp target/classes:target/test-classes:target/all-dependencies/*:target/arebac-neo4j-0.0.1-SNAPSHOT.jar org.openjdk.jmh.Main io.github.danthe1st.arebac.neo4j.tests.stackoverflow.SOBenchmark.gpEval ``` It is also possible to run all benchmarks in a specific class or package. @@ -21,7 +21,7 @@ It is also possible to run all benchmarks in a specific class or package. In order to profile a specific benchmark using [`async-profiler`](https://github.com/async-profiler/async-profiler), first download and extract `async-profiler` and then use the following command (replace `/PATH/TO/async-profiler` with the path you extracted `async-profiler` to): ```java -java -cp target/classes:target/test-classes:target/all-dependencies/*:target/arebac-neo4j-0.0.1-SNAPSHOT.jar org.openjdk.jmh.Main io.github.danthe1st.arebac.neo4j.tests.SOBenchmark -f 1 -jvmArgs '-agentpath:/PATH/TO/async-profiler/lib/libasyncProfiler.so=start,event=cpu,file=profile.html' +java -cp target/classes:target/test-classes:target/all-dependencies/*:target/arebac-neo4j-0.0.1-SNAPSHOT.jar io.github.danthe1st.arebac.neo4j.tests.airbnb.AirbnbBenchmark.scenario1GetReviewsFromHostGPEval -f 1 -jvmArgs '-agentpath:/PATH/TO/async-profiler/lib/libasyncProfiler.so=start,event=cpu,file=profile.html' ``` This configures JMH to only use a single fork and attaches async-profiler to create a CPU flamegraph in a `profile.html` file. The above example runs the benchmarks specified in the `SOBenchmark` class. \ No newline at end of file