-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
39 lines (33 loc) · 924 Bytes
/
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
test:
@NODE_ENV=test ./node_modules/.bin/mocha \
--reporter spec \
--require test/common.js \
--timeout 12s \
--bail \
--globals cwd
check = \
if [ -z `which siege` ]; then \
echo "please install siege. http://www.joedog.org/siege-home/"; \
exit 1; \
fi
install-bench:
@$(call check)
@npm install
@cd bench; npm install
bench: install-bench
@./node_modules/.bin/benchmarx \
--title "buffet benchmarks (siege html and image)" \
--runner siege \
--opts bench/opts.json \
--path ",hello.txt,folder/Alice-white-rabbit.jpg"
bench-slam: install-bench
@./node_modules/.bin/benchmarx \
--title "buffet benchmarks (slam html file)" \
--runner slam \
--opts bench/opts.json
bench-html: install-bench
@./node_modules/.bin/benchmarx \
--title "buffet benchmarks (siege html file)" \
--runner siege \
--opts bench/opts.json
.PHONY: test bench bench-slam bench-html