Skip to content

Commit a9cf24d

Browse files
committed
Reformat comments based on JSDoc
1 parent 08455c5 commit a9cf24d

File tree

1 file changed

+29
-7
lines changed

1 file changed

+29
-7
lines changed

tools/make/lib/benchmark/javascript.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 JavaScript benchmarks.
4+
#/
5+
# Runs JavaScript benchmarks consecutively.
56
#
6-
# This target runs a list of JavaScript benchmarks in sequential order. Note that we assume the benchmarks can be run using Node.js.
7-
7+
# ## Notes
8+
#
9+
# - This recipe assumes that benchmark files can be run via Node.js.
10+
# - This recipe is useful when wanting to glob for JavaScript benchmark files (e.g., run all JavaScript benchmarks for a particular package).
11+
#
12+
#
13+
# @param {string} [BENCHMARKS_FILTER] - filepath pattern (e.g., `.*/utils/group-by/.*`)
14+
#
15+
# @example
16+
# make benchmark-javascript
17+
#
18+
# @example
19+
# make benchmark-javascript BENCHMARKS_FILTER=.*/utils/group-by/.*
20+
#/
821
benchmark-javascript: $(NODE_MODULES)
922
$(QUIET) $(FIND_BENCHMARKS_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
1023
echo ""; \
@@ -16,11 +29,20 @@ benchmark-javascript: $(NODE_MODULES)
1629

1730
.PHONY: benchmark-javascript
1831

19-
20-
# Run JavaScript benchmarks.
32+
#/
33+
# Runs a specified list of JavaScript benchmarks consecutively.
2134
#
22-
# This target runs a specified list of JavaScript benchmarks in sequential order. Note that we assume the benchmarks can be run using Node.js.
23-
35+
# ## Notes
36+
#
37+
# - This recipe assumes that benchmark files can be run via Node.js.
38+
# - This recipe is useful when wanting to run a list of JavaScript benchmark files generated by some other command (e.g., a list of changed JavaScript benchmark files obtained via `git diff`).
39+
#
40+
#
41+
# @param {string} FILES - list of JavaScript benchmark file paths
42+
#
43+
# @example
44+
# make benchmark-javascript-files FILES='/foo/benchmark.js /bar/benchmark.js'
45+
#/
2446
benchmark-javascript-files: $(NODE_MODULES)
2547
$(QUIET) for file in $(FILES); do \
2648
echo ""; \

0 commit comments

Comments
 (0)