-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (39 loc) · 827 Bytes
/
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
46
47
48
# Don't run all the targets at once because the variable values gets all messed
# up Run everything one by one
RUNS?=10
NUM_DOMAINS?=4
define normal_defaults
$(eval STEP_FN?="i*10")
$(eval CHANGES?=1)
endef
define bench_command
NUM_DOMAINS=$(NUM_DOMAINS) RUNS=$(RUNS) bash bench_runner.sh [email protected] $(LO) $(HI) $(STEP_FN) $(CHANGES)
endef
filter:
$(eval LO?=1000)
$(eval HI?=100000)
$(normal_defaults)
$(bench_command)
merge_sort:
$(eval LO?=1000)
$(eval HI?=100000)
$(normal_defaults)
$(bench_command)
rabin_karp:
$(eval LO?=10000)
$(eval HI?=100000)
$(normal_defaults)
$(bench_command)
sum_array:
$(eval LO?=1000)
$(eval HI?=100000)
$(normal_defaults)
$(bench_command)
spellcheck:
$(eval LO?=100)
$(eval HI?=1000)
$(eval STEP_FN?="i+200")
$(eval CHANGES?=10)
$(bench_command)
clean:
dune clean