Skip to content

Commit 0d0bbb0

Browse files
committed
Add recipe to run Python benchmarks
1 parent 8dcabb4 commit 0d0bbb0

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
@@ -3,6 +3,7 @@
33

44
include $(TOOLS_MAKE_LIB_DIR)/benchmark/javascript.mk
55
include $(TOOLS_MAKE_LIB_DIR)/benchmark/julia.mk
6+
include $(TOOLS_MAKE_LIB_DIR)/benchmark/python.mk
67

78

89
# TARGETS #

tools/make/lib/benchmark/python.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 Python benchmarks.
5+
#
6+
# This target runs a list of Python benchmarks in sequential order. Note that we assume the benchmarks can be run using Python.
7+
8+
benchmark-python:
9+
$(QUIET) for file in $(BENCHMARKS); do \
10+
echo ""; \
11+
echo "Running benchmark: $$file"; \
12+
$(PYTHON) $$file || exit 1; \
13+
done
14+
15+
.PHONY: benchmark-python

0 commit comments

Comments
 (0)