-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
116 lines (103 loc) · 3.18 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.PHONY: word linus demo serial map
build:
g++ -pthread -g -std=c++11 -o dataf test/test_dataframe.cpp
g++ -pthread -g -std=c++11 -o serial test/test_serialization.cpp
g++ -pthread -g -std=c++11 -o map test/test_map.cpp
g++ -pthread -g -std=c++11 -o kvstore test/test_kvstore.cpp
g++ -pthread -g -std=c++11 -o lmap test/test_local_map.cpp
g++ -pthread -g -std=c++11 -o trivial demos/trivial.cpp
g++ -pthread -g -std=c++11 -o demo demos/demo.cpp
g++ -pthread -g -std=c++11 -o word demos/word_count.cpp
g++ -pthread -g -std=c++11 -o linus demos/linus.cpp
wget https://raw.githubusercontent.com/spencerlachance/cs4500datafile/master/datafiles.zip
mv datafiles.zip data
unzip data/datafiles.zip -d data
run:
./dataf -f data/datafile.txt -len 1000000
./serial
./map
./kvstore
./lmap -i 0 &
./lmap -i 1 &
./lmap -i 2
./trivial
./demo -idx 1 &
./demo -idx 2 &
./demo -idx 0
./word -i 1 -n 3 -f data/100k.txt &
./word -i 2 -n 3 -f data/100k.txt &
./word -i 0 -n 3 -f data/100k.txt
./linus -i 1 -n 4 &
./linus -i 2 -n 4 &
./linus -i 3 -n 4 &
./linus -i 0 -n 4 -l 1000000
valgrind:
valgrind --leak-check=full ./dataf -f data/datafile.txt -len 100000
valgrind --leak-check=full ./serial
valgrind --leak-check=full ./map
valgrind --leak-check=full ./kvstore
./lmap -i 1 &
./lmap -i 2 &
valgrind --leak-check=full ./lmap -i 0
valgrind --leak-check=full ./trivial -v
valgrind --leak-check=full ./demo -v -idx 1 &
valgrind --leak-check=full ./demo -v -idx 2 &
valgrind --leak-check=full ./demo -v -idx 0
valgrind --leak-check=full ./word -i 1 -n 2 -f data/100k.txt &
valgrind --leak-check=full ./word -i 0 -n 2 -f data/100k.txt
valgrind --leak-check=full ./linus -i 1 -n 2 &
valgrind --leak-check=full ./linus -i 0 -n 2 -l 100000
clean:
rm dataf serial map kvstore lmap trivial demo word linus
rm data/datafile* data/*.ltgt
df:
g++ -pthread -g -std=c++11 -o dataf test/test_dataframe.cpp
wget https://raw.githubusercontent.com/spencerlachance/cs4500datafile/master/datafiles.zip
mv datafiles.zip data
unzip data/datafiles.zip -d data
./dataf -f data/datafile.txt -len 1000000
rm dataf data/datafile* data/*.ltgt
serial:
g++ -pthread -g -std=c++11 -o serial test/test_serialization.cpp
./serial
rm serial
map:
g++ -pthread -g -std=c++11 -o map test/test_map.cpp
./map
rm map
kv:
g++ -pthread -g -std=c++11 -o kvstore test/test_kvstore.cpp
./kvstore
rm kvstore
lm:
g++ -pthread -g -std=c++11 -o lmap test/test_local_map.cpp
./lmap -i 0 &
./lmap -i 1 &
./lmap -i 2
rm lmap
triv:
g++ -pthread -g -std=c++11 -o trivial demos/trivial.cpp
./trivial
rm trivial
demo:
g++ -pthread -g -std=c++11 -o demo demos/demo.cpp
./demo -idx 1 &
./demo -idx 2 &
./demo -idx 0
rm demo
word:
g++ -pthread -g -std=c++11 -o word demos/word_count.cpp
./word -i 0 -n 3 -f data/100k.txt &
./word -i 1 -n 3 -f data/100k.txt &
./word -i 2 -n 3 -f data/100k.txt
rm word
linus:
g++ -pthread -g -std=c++11 -o linus demos/linus.cpp
wget https://raw.githubusercontent.com/spencerlachance/cs4500datafile/master/datafiles.zip
mv datafiles.zip data
unzip data/datafiles.zip -d data
./linus -i 1 -n 4 &
./linus -i 2 -n 4 &
./linus -i 3 -n 4 &
./linus -i 0 -n 4 -l 1000000
rm linus data/datafile* data/*.ltgt