summaryrefslogtreecommitdiff
path: root/scripts/scalability/test_controller
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-11-01 16:56:16 -0200
committerdrebs <drebs@riseup.net>2017-11-02 09:36:31 -0200
commitee198e3ba0b7b2df3b07c6f73056af90a5d46fab (patch)
treeb386daa3b2913947c6f8efd5a37b6f0cdd22bb64 /scripts/scalability/test_controller
parent31bdbc7268ff118080ecfb67f716fd86d3421032 (diff)
[benchmarks] make blob size configurable in scalability tests
Diffstat (limited to 'scripts/scalability/test_controller')
-rw-r--r--scripts/scalability/test_controller/client/Blobs.conf2
-rw-r--r--scripts/scalability/test_controller/client/makefile37
2 files changed, 21 insertions, 18 deletions
diff --git a/scripts/scalability/test_controller/client/Blobs.conf b/scripts/scalability/test_controller/client/Blobs.conf
index eea4b1cd..d5a2761f 100644
--- a/scripts/scalability/test_controller/client/Blobs.conf
+++ b/scripts/scalability/test_controller/client/Blobs.conf
@@ -2,7 +2,7 @@
title=Blobs Scalability Tests
description=Upload and download blobs
url=http://giraffe.cdev.bitmask.net:2424/
-size=1
+size=10
templates_dir=/tmp/templates
[test_upload]
diff --git a/scripts/scalability/test_controller/client/makefile b/scripts/scalability/test_controller/client/makefile
index 97603cc4..131b5f00 100644
--- a/scripts/scalability/test_controller/client/makefile
+++ b/scripts/scalability/test_controller/client/makefile
@@ -42,37 +42,40 @@ bench-cpu: start-cpu bench-upload bench-download stop-cpu
bench-mem: start-mem bench-upload bench-download stop-mem
-bench-upload: create-users delete-blobs
- fl-run-bench -f test_Blobs.py Blobs.test_upload
- fl-build-report --html results/blobs-bench.xml
+configure-size:
+ sed -i -e "s/size=[[:digit:]]\+/size=$(SIZE)/" Blobs.conf
-bench-download: create-users create-blobs
- fl-run-bench -f test_Blobs.py Blobs.test_download
- fl-build-report --html results/blobs-bench.xml
+bench-upload: configure-size create-users delete-blobs
+ fl-run-bench -f test_Blobs.py Blobs.test_upload
+ fl-build-report --html results/blobs-bench.xml
+
+bench-download: configure-size create-users create-blobs
+ fl-run-bench -f test_Blobs.py Blobs.test_download
+ fl-build-report --html results/blobs-bench.xml
# for quick tests only
-bench-upload-quick: create-users delete-blobs
- fl-run-bench -c 1 --duration 10 -f test_Blobs.py Blobs.test_upload
+bench-upload-quick: configure-size create-users delete-blobs
+ fl-run-bench -c 1 --duration 10 -f test_Blobs.py Blobs.test_upload
# for quick tests only
-bench-download-quick: create-users create-blobs
- fl-run-bench -c 1 --duration 10 -f test_Blobs.py Blobs.test_download
+bench-download-quick: configure-size create-users create-blobs
+ fl-run-bench -c 1 --duration 10 -f test_Blobs.py Blobs.test_download
#---------------------#
# resource monitoring #
#---------------------#
start-cpu:
- curl -X POST $(URI)/cpu
+ curl -X POST $(URI)/cpu
stop-cpu:
- curl -X GET $(URI)/cpu
+ curl -X GET $(URI)/cpu
start-mem:
- curl -X POST $(URI)/mem
+ curl -X POST $(URI)/mem
stop-mem:
- curl -X GET $(URI)/mem
+ curl -X GET $(URI)/mem
#--------------#
@@ -80,10 +83,10 @@ stop-mem:
#--------------#
create-users:
- curl -X POST $(URI)/users?create=1
+ curl -X POST $(URI)/users?create=1
delete-blobs:
- curl -X POST "$(URI)/blobs?action=delete"
+ curl -X POST "$(URI)/blobs?action=delete"
create-blobs:
- curl -X POST "$(URI)/blobs?action=create&size=$(SIZE)&amount=$(BLOBS)"
+ curl -X POST "$(URI)/blobs?action=create&size=$(SIZE)&amount=$(BLOBS)"