summaryrefslogtreecommitdiff
path: root/scripts/benchmark/legacy-vs-blobs/makefile
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-09-13 11:39:36 -0300
committerdrebs <drebs@riseup.net>2017-09-14 12:14:44 -0300
commitdd7b2e414adf2c84873debcd7b7d526859036bc2 (patch)
tree57f44bd454e9f4612a1c4fc808fbb944d0716c18 /scripts/benchmark/legacy-vs-blobs/makefile
parentaffc09e18a243b215dd1430f53c74a46eab8c098 (diff)
[test] move legacy-vs-blobs graphing to benchmark scripts dir
Diffstat (limited to 'scripts/benchmark/legacy-vs-blobs/makefile')
-rw-r--r--scripts/benchmark/legacy-vs-blobs/makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/benchmark/legacy-vs-blobs/makefile b/scripts/benchmark/legacy-vs-blobs/makefile
new file mode 100644
index 00000000..649e181c
--- /dev/null
+++ b/scripts/benchmark/legacy-vs-blobs/makefile
@@ -0,0 +1,14 @@
+VIRTUALENV_NAME = plot
+VIRTUALENV_ROOT = ~/.virtualenvs/$(VIRTUALENV_NAME)
+
+all: graph
+
+env:
+ if [ ! -d $(VIRTUALENV_ROOT) ]; then \
+ mkdir -p $$(dirname $(VIRTUALENV_ROOT)); \
+ virtualenv $(VIRTUALENV_ROOT); \
+ $(VIRTUALENV_ROOT)/bin/pip install requirements.pip; \
+ fi
+
+graph: env
+ $(VIRTUALENV_ROOT)/bin/python ./legacy-vs-blobs.py