-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
123 lines (95 loc) · 4.2 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
117
118
119
120
121
122
.PHONY: all dep
all: size lpm update
dep:
go mod tidy
go install tool
size: bart/size.bm art/size.bm netipds/size.bm critbitgo/size.bm lpmtrie/size.bm cidranger/size.bm cidrtree/size.bm
@echo
@go tool benchstat -ignore=pkg bart/size.bm art/size.bm
@echo
@go tool benchstat -ignore=pkg bart/size.bm netipds/size.bm
@echo
@go tool benchstat -ignore=pkg bart/size.bm critbitgo/size.bm
@echo
@go tool benchstat -ignore=pkg bart/size.bm lpmtrie/size.bm
@echo
@go tool benchstat -ignore=pkg bart/size.bm cidranger/size.bm
@echo
@go tool benchstat -ignore=pkg bart/size.bm cidrtree/size.bm
lpm: bart/lpm.bm art/lpm.bm netipds/lpm.bm critbitgo/lpm.bm lpmtrie/lpm.bm cidranger/lpm.bm cidrtree/lpm.bm
@echo
@go tool benchstat -ignore=pkg bart/lpm.bm art/lpm.bm
@echo
@go tool benchstat -ignore=pkg bart/lpm.bm netipds/lpm.bm
@echo
@go tool benchstat -ignore=pkg bart/lpm.bm critbitgo/lpm.bm
@echo
@go tool benchstat -ignore=pkg bart/lpm.bm lpmtrie/lpm.bm
@echo
@go tool benchstat -ignore=pkg bart/lpm.bm cidranger/lpm.bm
@echo
@go tool benchstat -ignore=pkg bart/lpm.bm cidrtree/lpm.bm
update: bart/update.bm art/update.bm netipds/update.bm critbitgo/update.bm lpmtrie/update.bm cidranger/update.bm cidrtree/update.bm
@echo
@go tool benchstat -ignore=pkg bart/update.bm art/update.bm
@echo
@go tool benchstat -ignore=pkg bart/update.bm netipds/update.bm
@echo
@go tool benchstat -ignore=pkg bart/update.bm critbitgo/update.bm
@echo
@go tool benchstat -ignore=pkg bart/update.bm lpmtrie/update.bm
@echo
@go tool benchstat -ignore=pkg bart/update.bm cidranger/update.bm
@echo
@go tool benchstat -ignore=pkg bart/update.bm cidrtree/update.bm
#
# benchmarks for lpm
#
bart/lpm.bm:
cd bart && go test -run=XXX -cpu=1 -count=20 -bench=Lpm -timeout=25m | tee lpm.bm
art/lpm.bm:
cd art && go test -run=XXX -cpu=1 -count=20 -bench=Lpm -timeout=25m | tee lpm.bm
netipds/lpm.bm:
cd netipds && go test -run=XXX -cpu=1 -count=20 -bench=Lpm -timeout=25m | tee lpm.bm
critbitgo/lpm.bm:
cd critbitgo && go test -run=XXX -cpu=1 -count=20 -bench=Lpm -timeout=25m | tee lpm.bm
lpmtrie/lpm.bm:
cd lpmtrie && go test -run=XXX -cpu=1 -count=20 -bench=Lpm -timeout=25m | tee lpm.bm
cidranger/lpm.bm:
cd cidranger && go test -run=XXX -cpu=1 -count=20 -bench=Lpm -timeout=25m | tee lpm.bm
cidrtree/lpm.bm:
cd cidrtree && go test -run=XXX -cpu=1 -count=20 -bench=Lpm -timeout=25m | tee lpm.bm
#
# benchmarks for tree/trie sizes, deterministic -> -benchtime=1x
#
bart/size.bm:
cd bart && go test -run=XXX -cpu=1 -count=6 -bench=Size -benchtime=1x -timeout=25m | tee size.bm
art/size.bm:
cd art && go test -run=XXX -cpu=1 -count=6 -bench=Size -benchtime=1x -timeout=25m | tee size.bm
netipds/size.bm:
cd netipds && go test -run=XXX -cpu=1 -count=6 -bench=Size -benchtime=1x -timeout=25m | tee size.bm
critbitgo/size.bm:
cd critbitgo && go test -run=XXX -cpu=1 -count=6 -bench=Size -benchtime=1x -timeout=25m | tee size.bm
lpmtrie/size.bm:
cd lpmtrie && go test -run=XXX -cpu=1 -count=6 -bench=Size -benchtime=1x -timeout=25m | tee size.bm
cidranger/size.bm:
cd cidranger && go test -run=XXX -cpu=1 -count=6 -bench=Size -benchtime=1x -timeout=25m | tee size.bm
cidrtree/size.bm:
cd cidrtree && go test -run=XXX -cpu=1 -count=6 -bench=Size -benchtime=1x -timeout=25m | tee size.bm
#
# benchmarks for insert/delete
#
bart/update.bm:
cd bart && go test -run=XXX -cpu=1 -count=6 -bench='Insert|Delete' -timeout=25m | tee update.bm
art/update.bm:
cd art && go test -run=XXX -cpu=1 -count=6 -bench='Insert|Delete' -timeout=25m | tee update.bm
netipds/update.bm:
cd netipds && go test -run=XXX -cpu=1 -count=6 -bench='Insert|Delete' -timeout=25m | tee update.bm
critbitgo/update.bm:
cd critbitgo && go test -run=XXX -cpu=1 -count=6 -bench='Insert|Delete' -timeout=25m | tee update.bm
lpmtrie/update.bm:
cd lpmtrie && go test -run=XXX -cpu=1 -count=6 -bench='Insert|Delete' -timeout=25m | tee update.bm
cidranger/update.bm:
cd cidranger && go test -run=XXX -cpu=1 -count=6 -bench='Insert|Delete' -timeout=25m | tee update.bm
cidrtree/update.bm:
cd cidrtree && go test -run=XXX -cpu=1 -count=6 -bench='Insert|Delete' -timeout=25m | tee update.bm