Skip to content

Commit f76d78e

Browse files
committed
Document R benchmark recipes
1 parent 53f122d commit f76d78e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

tools/make/lib/benchmark/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,42 @@ The recipe recognizes the following environment variables:
254254

255255
This recipe is useful when wanting to run a list of Python benchmark files generated by some other command (e.g., a filtered list of changed Python benchmark files obtained via `git diff`).
256256

257+
* * *
258+
259+
### R
260+
261+
#### benchmark-r
262+
263+
Runs R benchmarks.
264+
265+
<!-- run-disable -->
266+
267+
```bash
268+
$ make benchmark-r
269+
```
270+
271+
The recipe recognizes the following environment variables:
272+
273+
- **BENCHMARKS_FILTER**: filepath pattern; e.g., `.*/blas/base/dasum/.*`.
274+
275+
This recipe is useful when wanting to glob for R benchmark files (e.g., run all R benchmarks for a particular package).
276+
277+
#### benchmark-r-files
278+
279+
Runs a specified list of R benchmark files.
280+
281+
<!-- run-disable -->
282+
283+
```bash
284+
$ make benchmark-r-files FILES='/foo/benchmark.R /bar/benchmark.R'
285+
```
286+
287+
The recipe recognizes the following environment variables:
288+
289+
- **FILES**: list of R benchmark files.
290+
291+
This recipe is useful when wanting to run a list of R benchmark files generated by some other command (e.g., a filtered list of changed R benchmark files obtained via `git diff`).
292+
257293
</section>
258294

259295
<!-- /.usage -->

0 commit comments

Comments
 (0)