-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
6 deletions.
There are no files selected for viewing
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
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`. |