Skip to content

Commit

Permalink
doc nits
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy committed Jun 5, 2023
1 parent 4c649ce commit 56fb67b
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions servers/services-bench/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
# Nessie VersionStore micro benchmarks

Building:

```bash
./gradlew :nessie-services-bench:jmhJar
```

Running:

```bash
java -jar servers/services-bench/build/libs/nessie-services-bench-*-jmh.jar
```

## Async-profiler

See the [Async Profiler repo](https://github.com/async-profiler/async-profiler) for a pre-built library or how to build
it from source.
See the [Async Profiler repo](https://github.com/async-profiler/async-profiler) for a pre-built library or how to build it from source and also how to add it to a
JMH run. The following examples worked at the time of writing this README.

### Running on Linux

```bash
ASYNC_PROFILER_DLL=(path to async profiler libararies)
LD_LIBRARY_PATH=${ASYNC_PROFILER_DLL} java \
-jar servers/services-bench/build/libs/nessie-services-bench-*-jmh.jar \
-prof async
```

### Running on macOS

Running (Linux):
```bash
LD_LIBRARY_PATH=(PATH-TO-LIBRARY)/ java \
ASYNC_PROFILER_DLL=(path to async profiler libararies)
java \
-Djava.library.path=${ASYNC_PROFILER_DLL} \
-jar servers/services-bench/build/libs/nessie-services-bench-*-jmh.jar \
-prof async
```

## Linux Perf tools

Install the appropriate `linux-tools` package for your distribution, or `make` it from the Linux sources in `tools/perf`
for your running Linux kernel version. `perf` needs to be in `PATH`.
Install the appropriate package for your distribution (`linux-tools` on Ubuntu), or `make` it from the Linux sources
in `tools/perf` for your running Linux kernel version. `perf` needs to be in `PATH`.

0 comments on commit 56fb67b

Please sign in to comment.