-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
executable file
·75 lines (64 loc) · 1.42 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
all: clean test
test: prepare koa-1 koa-2 koa-2-async express
report:
@cd logs
@wrk_scan
@echo 'merge logs complete'
prepare:
@cd koa2 && npm install
@cd ..
@cd other && npm install
@cd ..
@echo 'prepare complete'
version:
@node -v
@npm -v
@echo
koa-1:
@echo 'benchmark koa-1'
@./run 1 other/koa1.js
@./run 5 other/koa1.js
@./run 10 other/koa1.js
@./run 15 other/koa1.js
@./run 20 other/koa1.js
@./run 30 other/koa1.js
@./run 50 other/koa1.js
@./run 100 other/koa1.js
@echo
koa-2:
@echo 'benchmark koa-2'
@./run 1 koa2/koa2.js
@./run 5 koa2/koa2.js
@./run 10 koa2/koa2.js
@./run 15 koa2/koa2.js
@./run 20 koa2/koa2.js
@./run 30 koa2/koa2.js
@./run 50 koa2/koa2.js
@./run 100 koa2/koa2.js
@echo
koa-2-async:
@echo 'benchmark koa-2-async'
@./run 1 koa2/koa2-async-compile.js
@./run 5 koa2/koa2-async-compile.js
@./run 10 koa2/koa2-async-compile.js
@./run 15 koa2/koa2-async-compile.js
@./run 20 koa2/koa2-async-compile.js
@./run 30 koa2/koa2-async-compile.js
@./run 50 koa2/koa2-async-compile.js
@./run 100 koa2/koa2-async-compile.js
@echo
express:
@echo 'benchmark express'
@./run 1 other/express.js
@./run 5 other/express.js
@./run 10 other/express.js
@./run 15 other/express.js
@./run 20 other/express.js
@./run 30 other/express.js
@./run 50 other/express.js
@./run 100 other/express.js
@echo
clean:
@rm -rf koa2/node_modules
@rm -rf other/node_modules
.PHONY: prepare test