File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 22# DEPENDENCIES #
33
44include $(TOOLS_MAKE_LIB_DIR ) /benchmark/javascript.mk
5+ include $(TOOLS_MAKE_LIB_DIR ) /benchmark/c.mk
56include $(TOOLS_MAKE_LIB_DIR ) /benchmark/julia.mk
67include $(TOOLS_MAKE_LIB_DIR ) /benchmark/python.mk
78include $(TOOLS_MAKE_LIB_DIR ) /benchmark/r.mk
@@ -22,6 +23,6 @@ benchmark: benchmark-javascript
2223#
2324# This target runs cross-language benchmarks.
2425
25- benchmark-lang : benchmark-javascript benchmark-julia benchmark-python benchmark-r
26+ benchmark-lang : benchmark-javascript benchmark-julia benchmark-python benchmark-r benchmark-c
2627
2728.PHONY : benchmark-lang
Original file line number Diff line number Diff line change 1+
2+ # TARGETS #
3+
4+ # Run C benchmarks.
5+ #
6+ # This target runs a list of C benchmarks consecutively.
7+
8+ benchmark-c :
9+ $(QUIET ) for file in $( C_BENCHMARKS) ; do \
10+ echo " " ; \
11+ echo " Running benchmark: $$ file" ; \
12+ cd ` dirname $$ file` && \
13+ $(MAKE ) clean && \
14+ $(MAKE ) && \
15+ $(MAKE ) run || exit 1; \
16+ done
17+
18+ .PHONY : benchmark-c
You can’t perform that action at this time.
0 commit comments