From ee198e3ba0b7b2df3b07c6f73056af90a5d46fab Mon Sep 17 00:00:00 2001 From: drebs Date: Wed, 1 Nov 2017 16:56:16 -0200 Subject: [benchmarks] make blob size configurable in scalability tests --- .../scalability/test_controller/client/makefile | 37 ++++++++++++---------- 1 file changed, 20 insertions(+), 17 deletions(-) (limited to 'scripts/scalability/test_controller/client/makefile') 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)" -- cgit v1.2.3