Skip to content

Commit

Permalink
docs: add instructions to run benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeqo committed May 25, 2023
1 parent e51a4aa commit 4ccce05
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Benchmarks

## How to run

> from https://www.baeldung.com/java-async-profiler
Enable Kernel configs:

```shell
sudo sh -c 'echo 1 >/proc/sys/kernel/perf_event_paranoid'
sudo sh -c 'echo 0 >/proc/sys/kernel/kptr_restrict'
```

set `LD_LIBRARY_PATH` environment variable with async-profile build directory:

```shell
export LD_LIBRARY_PATH=/opt/async-profiler-2.9-linux-x64/build/
```

```shell
./gradlew benchmarks:installDist
```

Run benchmark:

```shell
java -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -cp "benchmarks/build/install/benchmarks/*" io.aiven.kafka.tieredstorage.benchs.transform.PipelineFetchingBenchmark > results.txt 2>&1
```

0 comments on commit 4ccce05

Please sign in to comment.