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
Copy file name to clipboardExpand all lines: README.md
+29-13Lines changed: 29 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,22 +184,38 @@ This file will then be passed to the underlying Ruby interpreter with
184
184
185
185
## Harnesses
186
186
187
-
You can find several test harnesses in this repository:
187
+
You can find several test harnesses in the `harness/` directory:
188
188
189
-
* harness - the normal default harness, with duration controlled by warmup iterations and time/count limits
190
-
* harness-bips - a harness that measures iterations/second until stable
191
-
* harness-continuous - a harness that adjusts the batch sizes of iterations to run in stable iteration size batches
192
-
* harness-once - a simplified harness that simply runs once
193
-
* harness-perf - a simplified harness that runs for exactly the hinted number of iterations
194
-
* harness-stackprof - a harness to profile the benchmark with stackprof
195
-
* harness-stats - count method calls and loop iterations
196
-
* harness-vernier - a harness to profile the benchmark with vernier
197
-
* harness-warmup - a harness which runs as long as needed to find warmed up (peak) performance
189
+
*`harness` - the normal default harness, with duration controlled by warmup iterations and time/count limits
190
+
*`bips` - a harness that measures iterations/second until stable
191
+
*`continuous` - a harness that adjusts the batch sizes of iterations to run in stable iteration size batches
192
+
*`once` - a simplified harness that simply runs once
193
+
*`perf` - a simplified harness that runs for exactly the hinted number of iterations
194
+
*`stackprof` - a harness to profile the benchmark with stackprof
195
+
*`stats` - count method calls and loop iterations
196
+
*`vernier` - a harness to profile the benchmark with vernier
197
+
*`warmup` - a harness which runs as long as needed to find warmed up (peak) performance
198
+
*`chain` - a harness to chain multiple harnesses together
199
+
*`mplr` - a harness for multiple iterations with time limits
198
200
199
-
To use it, run a benchmark script directly, specifying a harness directory with `-I`:
201
+
To use a specific harness, run a benchmark script directly with `-I` to add the harness directory to the load path, and `-r` to require the specific harness:
0 commit comments