You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
426 B
16 lines
426 B
#!/usr/bin/env bash
|
|
|
|
if [ -z "$1" ] && [ -z "$procs" ]; then
|
|
procs=1
|
|
else
|
|
procs=$1
|
|
fi
|
|
|
|
bench_exec="sysbench"
|
|
bench_var="--num-threads=$procs"
|
|
bench="$bench_exec $benc_var"
|
|
|
|
machine_ident="$(uname -nmo | sed 's/ /_/g' | sed 's/\//\./g')_$(cat /var/lib/dbus/machine-id)"
|
|
logfile="$PWD/results/$(date -Idate)_${machine_ident}.log"
|
|
touch $logfile
|
|
$bench $bench_var --test=cpu --cpu-max-prime=20000 run | tee -ai $logfile
|