You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can add additional optional JMH arguments dynamically from command line. For example, to run the benchmarks with 4 forks, 5 warmup iterations, 5 measurement iterations, 2 threads, and 10 seconds warmup time per iteration, use the following command:
For benchmarks that output auxiliary counters (like recall metrics, visited counts, etc.), you can use the provided Python formatter to create a clean tabular view of the results.
96
+
97
+
### Setting up the Python environment
98
+
99
+
First, create a virtual environment and install the required dependencies:
100
+
101
+
```shell
102
+
# Create virtual environment
103
+
python3 -m venv .venv
104
+
105
+
# Activate the virtual environment
106
+
# On macOS/Linux:
107
+
source .venv/bin/activate
108
+
# On Windows:
109
+
# .venv\Scripts\activate
110
+
111
+
# Install pandas dependency
112
+
pip install pandas
113
+
```
114
+
115
+
### Using the results formatter
116
+
117
+
After running a benchmark with CSV output (using `-rf csv -rff results.csv`), you can format the results:
118
+
119
+
```shell
120
+
# Make sure your virtual environment is activated
121
+
source .venv/bin/activate
122
+
123
+
# Run the formatter script (assumes results.csv is in the current directory)
0 commit comments