summaryrefslogtreecommitdiff
path: root/automated/linux/sysbench/sysbench.sh
diff options
context:
space:
mode:
Diffstat (limited to 'automated/linux/sysbench/sysbench.sh')
-rwxr-xr-xautomated/linux/sysbench/sysbench.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/automated/linux/sysbench/sysbench.sh b/automated/linux/sysbench/sysbench.sh
index 8a00613..dc60fd2 100755
--- a/automated/linux/sysbench/sysbench.sh
+++ b/automated/linux/sysbench/sysbench.sh
@@ -90,6 +90,8 @@ fi
sysbench --version
general_parser() {
+ # if $1 is there, let's append to test name in the result file
+ local tc="$tc$1"
ms=$(grep -m 1 "total time" "${logfile}" | awk '{print substr($NF,1,length($NF)-1)}')
add_metric "${tc}-total-time" "pass" "${ms}" "s"
@@ -117,6 +119,12 @@ for tc in ${TESTS}; do
info_msg "Running sysbench ${tc} test..."
logfile="${OUTPUT}/sysbench-${tc}.txt"
case "${tc}" in
+ percpu)
+ for i in $(cat /proc/cpuinfo | awk '/^processor/{print $3}'); do
+ taskset -c $i sysbench --num-threads=1 --test=cpu run | tee "${logfile}"
+ general_parser $i
+ done
+ ;;
cpu|threads|mutex)
sysbench --num-threads="${NUM_THREADS}" --test="${tc}" run | tee "${logfile}"
general_parser