diff options
author | drebs <drebs@leap.se> | 2016-08-12 08:34:31 -0300 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2016-09-01 17:39:10 +0200 |
commit | 2d9bec78f3f8c46f00f585cadae652d6e3aec904 (patch) | |
tree | e22eecbf2fb34d134c4e975465c122ce49d12a62 /Makefile | |
parent | 354ad5a12e90463f9952fe056f191c6d4cdadf40 (diff) |
[test] add speed tests for gpg/wrapper init/enc/dec
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0a3db77 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +# This makefile is currently intended to make it easy to generate the +# benchmarking graphs. + +RESULTS_FILE = tests/results.json +GRAPH_PREFIX = benchmark + +GRAPH_FILE = $(GRAPH_PREFIX)-test_gpg_init.svg + +all: $(GRAPH_FILE) + +# +# rules for generating one graph with the results of all speed tests +# + +$(RESULTS_FILE): + tox -v test_gpg_speed.py -- -v --pdb -s \ + --benchmark-max-time=2.0 \ + --benchmark-json=$(subst tests/,,$@) + +$(GRAPH_FILE): $(RESULTS_FILE) + py.test-benchmark compare $< --histogram $(GRAPH_PREFIX) + + +# +# rule for generating one graph for each graph +# + +test: + tox -v test_gpg_speed.py -- -v --pdb -s \ + --benchmark-histogram=gpg_speed \ + --benchmark-storage=./graphs/ \ + --benchmark-save=keymanager_gpg_speed \ + +clean: + rm -f $(RESULTS_FILE) $(GRAPH_PREFIX)*.svg + +.PHONY: all test graph |