Skip to content

Commit bee71a7

Browse files
committed
Add recipe to run R benchmarks
1 parent 0d0bbb0 commit bee71a7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tools/make/lib/benchmark/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
include $(TOOLS_MAKE_LIB_DIR)/benchmark/javascript.mk
55
include $(TOOLS_MAKE_LIB_DIR)/benchmark/julia.mk
66
include $(TOOLS_MAKE_LIB_DIR)/benchmark/python.mk
7+
include $(TOOLS_MAKE_LIB_DIR)/benchmark/r.mk
78

89

910
# TARGETS #

tools/make/lib/benchmark/r.mk

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
# TARGETS #
3+
4+
# Run R benchmarks.
5+
#
6+
# This target runs a list of R benchmarks in sequential order. Note that we assume the benchmarks can be run using R.
7+
8+
benchmark-r:
9+
$(QUIET) for file in $(BENCHMARKS); do \
10+
echo ""; \
11+
echo "Running benchmark: $$file"; \
12+
$$file || exit 1; \
13+
done
14+
15+
.PHONY: benchmark-r

0 commit comments

Comments
 (0)