forked from cloudant/basho_bench
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
58 lines (40 loc) · 1.51 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
REPO ?= basho_bench
PKG_REVISION ?= $(shell git describe --tags)
PKG_VERSION ?= $(shell git describe --tags | tr - .)
PKG_ID = basho-bench-$(PKG_VERSION)
PKG_BUILD = 1
BASE_DIR = $(shell pwd)
ERLANG_BIN = $(shell dirname $(shell which erl))
OVERLAY_VARS ?=
all: compile
rebar3 escriptize
@ln -sf _build/default/bin/basho_bench basho_bench
compile:
rebar3 compile
run: compile
rebar3 shell --apps basho_bench
.PHONY: compile
clean:
rebar3 clean
distclean: clean
@rm -rf basho_bench _build
results:
Rscript --vanilla priv/summary.r -i tests/current
ops_sec-results: results
byte_sec-results:
Rscript --vanilla priv/summary.r --ylabel1stgraph byte/sec -i tests/current
kb_sec-results:
Rscript --vanilla priv/summary.r --ylabel1stgraph KB/sec -i tests/current
kib_sec-results:
Rscript --vanilla priv/summary.r --ylabel1stgraph KiB/sec -i tests/current
mb_sec-results:
Rscript --vanilla priv/summary.r --ylabel1stgraph MB/sec -i tests/current
mib_sec-results:
Rscript --vanilla priv/summary.r --ylabel1stgraph MiB/sec -i tests/current
results-browser:
cp -R priv/results-browser/* tests/current && cd tests/current && python -c 'import os, json; print json.dumps(os.listdir("."))' > web/data.json && python ../../priv/results-browser.py
TARGETS := $(shell ls tests/ | grep -v current)
JOBS := $(addprefix job,${TARGETS})
.PHONY: all_results ${JOBS}
all_results: ${JOBS} ; echo "$@ successfully generated."
${JOBS}: job%: ; Rscript --vanilla priv/summary.r -i tests/$*