forked from effect-handlers/effect-handlers-bench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
102 lines (76 loc) · 2.77 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
DOCKERHUB=effecthandlers/effect-handlers
all: bench_eff bench_hia bench_koka bench_links bench_ocaml
# Eff in ocaml
system_eff:
docker build -t $(DOCKERHUB):eff systems/eff
bench_eff: system_eff
docker run -it --init -v $(shell pwd):/source $(DOCKERHUB):eff \
make -C /source/benchmarks/eff
test_eff: system_eff
docker run -v $(shell pwd):/source $(DOCKERHUB):eff \
make -C /source/benchmarks/eff test
# Effekt
system_effekt:
docker build -t $(DOCKERHUB):effekt systems/effekt
bench_effekt: system_effekt
docker run -it --init -v $(shell pwd):/source $(DOCKERHUB):effekt \
make -C /source/benchmarks/effekt
test_effekt: system_effekt
docker run -v $(shell pwd):/source $(DOCKERHUB):effekt \
make -C /source/benchmarks/effekt test
# Handlers in Action
system_hia:
docker build -t $(DOCKERHUB):hia systems/hia
bench_hia: system_hia
docker run -it --init -v $(shell pwd):/source $(DOCKERHUB):hia \
make -C /source/benchmarks/hia
test_hia: system_hia
docker run -v $(shell pwd):/source $(DOCKERHUB):hia \
make -C /source/benchmarks/hia test
# Koka
system_koka:
docker build -t effecthandlers/effect-handlers:koka systems/koka
bench_koka: system_koka
docker run -it --init -v $(shell pwd):/source $(DOCKERHUB):koka \
make -C /source/benchmarks/koka
test_koka: system_koka
docker run -v $(shell pwd):/source $(DOCKERHUB):koka \
make -C /source/benchmarks/koka test
# libmpeff
system_libmpeff:
docker build -t $(DOCKERHUB):libmpeff systems/libmpeff
bench_libmpeff: system_libmpeff
docker run -it --init -v $(shell pwd):/source $(DOCKERHUB):libmpeff \
make -C /source/benchmarks/libmpeff
test_libmpeff: system_libmpeff
docker run -v $(shell pwd):/source $(DOCKERHUB):libmpeff \
make -C /source/benchmarks/libmpeff test
# Links
system_links:
docker build -t $(DOCKERHUB):links systems/links
bench_links: system_links
docker run -it --init -v $(shell pwd):/source $(DOCKERHUB):links \
make -C /source/benchmarks/links
test_links: system_links
docker run -v $(shell pwd):/source $(DOCKERHUB):links \
make -C /source/benchmarks/links test
# libhandler
system_libhandler:
docker build -t $(DOCKERHUB):libhandler systems/libhandler
bench_libhandler: system_libhandler
docker run -it --init -v $(shell pwd):/source $(DOCKERHUB):libhandler \
make -C /source/benchmarks/libhandler
test_libhandler: system_libhandler
docker run -v $(shell pwd):/source $(DOCKERHUB):libhandler \
make -C /source/benchmarks/libhandler test
# Multicore OCaml
system_ocaml:
docker build -t $(DOCKERHUB):ocaml systems/ocaml
bench_ocaml: system_ocaml
docker run -it --init -v $(shell pwd):/source $(DOCKERHUB):ocaml \
make -C /source/benchmarks/ocaml
test_ocaml: system_ocaml
docker run -v $(shell pwd):/source $(DOCKERHUB):ocaml \
make -C /source/benchmarks/ocaml test
clean:
rm -f _results *~