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