summaryrefslogtreecommitdiff
path: root/scripts/scalability/test_controller/client/makefile
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-10-28 07:58:51 -0200
committerdrebs <drebs@riseup.net>2017-11-02 09:36:31 -0200
commit21584bc33fdc672a0f59436ba5d66f66439d6366 (patch)
tree8e8b58fbfc82ef9898cd8cc6f6e2960b121be3d1 /scripts/scalability/test_controller/client/makefile
parente3879ac206e66437cefbe968e77f757239640681 (diff)
[benchmarks] add code for stressing the server
Diffstat (limited to 'scripts/scalability/test_controller/client/makefile')
-rw-r--r--scripts/scalability/test_controller/client/makefile19
1 files changed, 19 insertions, 0 deletions
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