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
@@ -211,22 +211,38 @@ This file will then be passed to the underlying Ruby interpreter with
211
211
212
212
## Harnesses
213
213
214
-
You can find several test harnesses in this repository:
214
+
You can find several test harnesses in the `harness/` directory:
215
215
216
-
* harness - the normal default harness, with duration controlled by warmup iterations and time/count limits
217
-
* harness-bips - a harness that measures iterations/second until stable
218
-
* harness-continuous - a harness that adjusts the batch sizes of iterations to run in stable iteration size batches
219
-
* harness-once - a simplified harness that simply runs once
220
-
* harness-perf - a simplified harness that runs for exactly the hinted number of iterations
221
-
* harness-stackprof - a harness to profile the benchmark with stackprof
222
-
* harness-stats - count method calls and loop iterations
223
-
* harness-vernier - a harness to profile the benchmark with vernier
224
-
* harness-warmup - a harness which runs as long as needed to find warmed up (peak) performance
216
+
*`harness` - the normal default harness, with duration controlled by warmup iterations and time/count limits
217
+
*`bips` - a harness that measures iterations/second until stable
218
+
*`continuous` - a harness that adjusts the batch sizes of iterations to run in stable iteration size batches
219
+
*`once` - a simplified harness that simply runs once
220
+
*`perf` - a simplified harness that runs for exactly the hinted number of iterations
221
+
*`stackprof` - a harness to profile the benchmark with stackprof
222
+
*`stats` - count method calls and loop iterations
223
+
*`vernier` - a harness to profile the benchmark with vernier
224
+
*`warmup` - a harness which runs as long as needed to find warmed up (peak) performance
225
+
*`chain` - a harness to chain multiple harnesses together
226
+
*`mplr` - a harness for multiple iterations with time limits
225
227
226
-
To use it, run a benchmark script directly, specifying a harness directory with `-I`:
228
+
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