Skip to content

Commit 052ad3a

Browse files
committed
Reformat comments based on JSDoc
1 parent cefc5b5 commit 052ad3a

File tree

1 file changed

+29
-7
lines changed
  • tools/make/lib/benchmark

1 file changed

+29
-7
lines changed

tools/make/lib/benchmark/r.mk

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11

22
# TARGETS #
33

4-
# Run R benchmarks.
4+
#/
5+
# Runs R benchmarks consecutively.
56
#
6-
# This target runs a list of R benchmarks in sequential order. Note that we assume the benchmarks can be run using R.
7-
7+
# ## Notes
8+
#
9+
# - This recipe assumes that benchmark files can be run via R.
10+
# - This recipe is useful when wanting to glob for R benchmark files (e.g., run all R benchmarks for a particular package).
11+
#
12+
#
13+
# @param {string} [BENCHMARKS_FILTER] - file path pattern (e.g., `.*/math/base/special/expm1/.*`)
14+
#
15+
# @example
16+
# make benchmark-r
17+
#
18+
# @example
19+
# make benchmark-r BENCHMARKS_FILTER=.*/math/base/special/expm1/.*
20+
#/
821
benchmark-r:
922
$(QUIET) $(FIND_R_BENCHMARKS_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
1023
echo ""; \
@@ -14,11 +27,20 @@ benchmark-r:
1427

1528
.PHONY: benchmark-r
1629

17-
18-
# Run R benchmarks.
30+
#/
31+
# Runs a specified list of R benchmarks consecutively.
1932
#
20-
# This target runs a specified list of R benchmarks in sequential order. Note that we assume the benchmarks can be run using R.
21-
33+
# ## Notes
34+
#
35+
# - This recipe assumes that benchmark files can be run via R.
36+
# - This recipe is useful when wanting to run a list of R benchmark files generated by some other command (e.g., a list of changed R benchmark files obtained via `git diff`).
37+
#
38+
#
39+
# @param {string} FILES - list of R benchmark file paths
40+
#
41+
# @example
42+
# make benchmark-r-files FILES='/foo/benchmark.R /bar/benchmark.R'
43+
#/
2244
benchmark-r-files:
2345
$(QUIET) for file in $(FILES); do \
2446
echo ""; \

0 commit comments

Comments
 (0)