Skip to content
Snippets Groups Projects
Unverified Commit 20cc7ad7 authored by Victor's avatar Victor Committed by drebs
Browse files

[refactor] improve instructions and fix small typos

parent 93250414
Branches 8942
No related tags found
No related merge requests found
Pipeline #
......@@ -18,7 +18,7 @@ the tests for measuring memory. This script only plots time, for now.
Once you done the above, chdir into `soledad/tests` and do something like this,
for each test group:
tox -e benchmarks -- -m benchmark_test_legacy_vs_blobs_10_1000k --benchmark-autosave
tox -e benchmark -- -m benchmark_test_legacy_vs_blobs_10_1000k --benchmark-autosave
Each run of tox as above produces a JSON file in `soledad/tests/.benchmarks`
with stats. Each file has to be copied in a subdirectory of the `data/`
......
......@@ -7,8 +7,10 @@ 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
deps: env
$(VIRTUALENV_ROOT)/bin/pip install -r requirements.pip
graph: deps
$(VIRTUALENV_ROOT)/bin/python ./gen-graph.py
matplotlib
numpy
mpltools
......@@ -14,10 +14,12 @@ twice by default, you should remove the second call to pytest in `tox.ini` that
would cause a second run of the tests for measuring memory. This script only
plots time, for now.
Once you done the above, chdir into `soledad/tests` and do something like this:
tox -e benchmarks -- -m sqlite_blobs_backend_get --benchmark-autosave
tox -e benchmarks -- -m sqlite_blobs_backend_put --benchmark-autosave
Once you done the above, do the following to benchmark and generate data:
```bash
chdir soledad/tests
tox -e benchmark -- -m sqlite_blobs_backend_get --benchmark-autosave
tox -e benchmark -- -m sqlite_blobs_backend_put --benchmark-autosave
```
Each run of tox as above produces a JSON file in `soledad/tests/.benchmarks`
with stats. Copy the first file into `data/get.json` and the second file into
......
......@@ -7,8 +7,10 @@ env:
if [ ! -d $(VIRTUALENV_ROOT) ]; then \
mkdir -p $$(dirname $(VIRTUALENV_ROOT)); \
virtualenv $(VIRTUALENV_ROOT); \
$(VIRTUALENV_ROOT)/bin/pip install requirements.pip; \
fi
graph: env
deps: env
$(VIRTUALENV_ROOT)/bin/pip install -r requirements.pip
graph: deps
$(VIRTUALENV_ROOT)/bin/python ./gen-graph.py
matplotlib
numpy
mpltools
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment