Skip to content

Commit 5fef9d6

Browse files
committed
python/Makefile (benchmarks): Run benchmarks.
1 parent 571e7c5 commit 5fef9d6

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

python/Makefile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file should be almost identical to
22
# https://github.com/multi-objective/mooplot/blob/main/python/Makefile
3-
.PHONY : install dev-install build test doc fastdoc clean docdeps pre-commit
3+
.PHONY : install dev-install build test doc fastdoc clean docdeps pre-commit benchmarks
44

55
install: build
66
python3 -m pip install . --disable-pip-version-check
@@ -37,3 +37,17 @@ clean:
3737
find . -name '__pycache__' | xargs $(RM) -r
3838
$(RM) -r .pytest_cache .tox .ruff_cache build src/*.egg-info/ doc/source/auto_examples
3939
$(RM) .coverage coverage.xml c_coverage.xml dist/* src/moocore/*.so
40+
41+
benchmarks: install
42+
$(RM) ./benchmarks/*_bench-*.png
43+
cd benchmarks && \
44+
python3 bench_epsilon.py && \
45+
python3 bench_hv.py && \
46+
python3 bench_hvapprox.py && \
47+
python3 bench_igdplus.py && \
48+
python3 bench_ndom.py && \
49+
python3 bench_ndsort.py && \
50+
mv *.png -t ../doc/source/_static/bench/ && \
51+
cd ..
52+
$(MAKE) -C doc html
53+
$(MAKE) -C doc show

0 commit comments

Comments
 (0)