-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (38 loc) · 2.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
export ROOT_PATH ?= /app/HeaderGen
export TEST_SUITE_DIR ?= $(ROOT_PATH)/callsites-jupyternb-micro-benchmark/snippets
export MICRO_BENCH_PATH ?= $(ROOT_PATH)/callsites-jupyternb-micro-benchmark
export REALWORLD_BENCH_PATH ?= $(ROOT_PATH)/callsites-jupyternb-real-world-benchmark/scripts
export REALWORLD_SUITE_DIR ?= $(ROOT_PATH)/callsites-jupyternb-real-world-benchmark
export EXTENDED_REALWORLD_BENCH_PATH ?= $(ROOT_PATH)/callsites-jupyternb-extended-benchmark/scripts
export EXTENDED_REALWORLD_SUITE_DIR ?= $(ROOT_PATH)/callsites-jupyternb-extended-benchmark
export RESULTS_PATH ?= $(ROOT_PATH)/headergen_output
all: prepare microbench realworldbench extendedbench
prepare:
@echo "#########################################"
@echo "Preparing environment..."
@echo "#########################################"
mkdir -p $(RESULTS_PATH)
microbench:
@echo "#########################################"
@echo "Running MicroBenchmark..."
@echo "#########################################"
cd $(MICRO_BENCH_PATH) && \
python3 micro_benchmark_report.py --test_suite_dir $(TEST_SUITE_DIR) --results_dir $(RESULTS_PATH)
realworldbench:
@echo "#########################################"
@echo "Running Real-world Bench..."
@echo "#########################################"
cd $(REALWORLD_BENCH_PATH) && \
python3 generate_headergen_notebooks.py --test_suite_dir $(REALWORLD_SUITE_DIR)/notebooks --results_dir $(RESULTS_PATH)/annotated_notebooks && \
python3 compare_annotations.py --test_suite_dir $(REALWORLD_SUITE_DIR) --results_dir $(RESULTS_PATH) && \
python3 compare_macro_benchmark_cg.py --test_suite_dir $(REALWORLD_SUITE_DIR) --results_dir $(RESULTS_PATH)
extendedbench:
@echo "#########################################"
@echo "Running Extended Real-world Bench..."
@echo "#########################################"
cd $(EXTENDED_REALWORLD_BENCH_PATH) && \
python3 generate_headergen_notebooks.py --test_suite_dir $(EXTENDED_REALWORLD_SUITE_DIR)/notebooks --results_dir $(RESULTS_PATH)/annotated_notebooks && \
python3 compare_annotations.py --test_suite_dir $(EXTENDED_REALWORLD_SUITE_DIR) --results_dir $(RESULTS_PATH) && \
python3 compare_macro_benchmark_cg.py --test_suite_dir $(EXTENDED_REALWORLD_SUITE_DIR) --results_dir $(RESULTS_PATH)
clean:
rm -r $(RESULTS_PATH)/*