tfcache-comparison
Details
reduce.sh 3(+2 -1)
diff --git a/reduce.sh b/reduce.sh
index 4b48150..edb9396 100755
--- a/reduce.sh
+++ b/reduce.sh
@@ -59,11 +59,12 @@ echo "$(date '+%F %T') Reducing $reduce in host $host for the applications $appl
for version in $versions; do
version=${version%/}
if [[ $applications = "*" ]]; then
- existing_applications=$(echo applications/$version/*/ | cut -d "/" -f 3)
+ existing_applications=$(echo applications/$version/*/)
else
existing_applications=$applications
fi
for application in $existing_applications; do
+ application=${application//applications\/$version\//}
application=${application%/}
for user in 1 5 25; do
if [[ "$reduce" = "*" || "$reduce" = "requests" ]]; then
run.sh 4(+4 -0)
diff --git a/run.sh b/run.sh
index 4408a26..76dbbd0 100644
--- a/run.sh
+++ b/run.sh
@@ -22,9 +22,13 @@ if [[ ! -z $1 ]]; then
fi
fi
fi
+if [[ $applications = "*" ]]; then
+ applications=$(echo applications/uncached/*/)
+fi
echo "$(date '+%F %T') Executing workloads in host $host for the applications $applications among the versions $versions"
for application in $applications; do
+ application=${application//applications\/uncached\//}
application=${application%/}
for user in 25 5 1; do
if [[ ! -f applications/workloads/$application-workload-${user}user.json ]]; then
trace.sh 4(+4 -0)
diff --git a/trace.sh b/trace.sh
index 6607d08..486700b 100644
--- a/trace.sh
+++ b/trace.sh
@@ -18,9 +18,13 @@ if [[ ! -z $1 ]]; then
applications=$2
fi
fi
+if [[ $applications = "*" ]]; then
+ applications=$(echo applications/uncached/*/)
+fi
echo "$(date '+%F %T') Running in host $host for the applications: $applications"
for application in $applications; do
+ application=${application//applications\/uncached\//}
application=${application%/}
if [[ -f applications/output/$application-uncached-requests ]]; then
echo "$(date '+%F %T') Skipping application $application"