From 21584bc33fdc672a0f59436ba5d66f66439d6366 Mon Sep 17 00:00:00 2001 From: drebs Date: Sat, 28 Oct 2017 07:58:51 -0200 Subject: [benchmarks] add code for stressing the server --- scripts/scalability/test_controller/client/makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/scalability/test_controller/client/makefile (limited to 'scripts/scalability/test_controller/client/makefile') diff --git a/scripts/scalability/test_controller/client/makefile b/scripts/scalability/test_controller/client/makefile new file mode 100644 index 00000000..33e67e25 --- /dev/null +++ b/scripts/scalability/test_controller/client/makefile @@ -0,0 +1,19 @@ +bench: upload download + +upload: + curl -X POST "http://127.0.0.1:7001/blobs?action=delete" + fl-run-bench -f test_Blobs.py Blobs.test_upload + fl-build-report --html results/blobs-bench.xml + +download: + curl -X POST "http://127.0.0.1:7001/blobs?action=create&size=10&amount=5000" + fl-run-bench -f test_Blobs.py Blobs.test_download + fl-build-report --html results/blobs-bench.xml + +test_upload: + curl -X POST "http://127.0.0.1:7001/blobs?action=delete" + fl-run-bench -c 1 --duration 10 -f test_Blobs.py Blobs.test_upload + +test_download: + curl -X POST "http://127.0.0.1:7001/blobs?action=create&size=10" + fl-run-bench -c 1 --duration 10 -f test_Blobs.py Blobs.test_download -- cgit v1.2.3