diff options
author | drebs <drebs@riseup.net> | 2017-11-01 16:56:16 -0200 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-11-02 09:36:31 -0200 |
commit | ee198e3ba0b7b2df3b07c6f73056af90a5d46fab (patch) | |
tree | b386daa3b2913947c6f8efd5a37b6f0cdd22bb64 /scripts/scalability/test_controller/client/makefile | |
parent | 31bdbc7268ff118080ecfb67f716fd86d3421032 (diff) |
[benchmarks] make blob size configurable in scalability tests
Diffstat (limited to 'scripts/scalability/test_controller/client/makefile')
-rw-r--r-- | scripts/scalability/test_controller/client/makefile | 37 |
1 files changed, 20 insertions, 17 deletions
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)" |