-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (31 loc) · 701 Bytes
/
Makefile
File metadata and controls
39 lines (31 loc) · 701 Bytes
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
maxlinks:= 100
pagelimit:= 100
threads:= 10
rankerFlag:= -sp
all_targets:= compile run plots ranker clean
all: ${all_targets}
compile:
@mkdir OUTPUT -p
@clear
@echo "Compiling file..."
g++ -std=c++14 main.cpp -o _crawler -lssl -lpthread -w
run:
@echo "Running..."
./_crawler $(maxlinks) $(pagelimit) $(threads)
plots:
@mkdir OUTPUT -p
python3 th_timings.py ${threads}
ranker:
python3 ranker.py ${rankerFlag}
clean:
rm -r -f _crawler
rm -r -f logs.txt
@echo "All cleaned."
# For testing MT Crawler from 10 to 100 threads
test_bench:
@rm -r -f OUTPUT/crawler_timings.csv
g++ test_bench.cpp -o _tb
./_tb
@rm -r -f _tb
python3 test_bench.py
@echo "Successfully testing finished."