UNPKG

891 BPlain TextView Raw
1test:
2 @NODE_ENV=test ./node_modules/.bin/mocha \
3 --reporter spec \
4 --timeout 5s
5
6check = \
7 if [ -z `which siege` ]; then \
8 echo "please install siege. http://www.joedog.org/siege-home/"; \
9 exit 1; \
10 fi
11
12install-bench:
13 @$(call check)
14 @npm install
15 @cd bench; npm install
16
17bench: install-bench
18 @./node_modules/.bin/benchmarx \
19 --title "buffet benchmarks (siege html and image)" \
20 --runner siege \
21 --opts bench/opts.json \
22 --path ",hello.txt,folder/Alice-white-rabbit.jpg"
23
24bench-slam: install-bench
25 @./node_modules/.bin/benchmarx \
26 --title "buffet benchmarks (slam html file)" \
27 --runner slam \
28 --opts bench/opts.json \
29 --path /
30
31bench-html: install-bench
32 @./node_modules/.bin/benchmarx \
33 --title "buffet benchmarks (siege html file)" \
34 --runner siege \
35 --opts bench/opts.json \
36 --path /
37
38.PHONY: test bench bench-slam bench-html
\No newline at end of file