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
394 B

  1. #!/usr/bin/env bash
  2. if [ -z $1 ]; then
  3. procs=1
  4. else
  5. procs=$1
  6. fi
  7. bench_exec="sysbench"
  8. bench_var="--num-threads=$procs"
  9. bench="$bench_exec $benc_var"
  10. machine_ident="$(uname -nmo | sed 's/ /_/g' | sed 's/\//\./g')_$(cat /var/lib/dbus/machine-id)"
  11. logfile="$PWD/results/$(date -Idate)_${machine_ident}.log"
  12. touch $logfile
  13. $bench --test=cpu --cpu-max-prime=20000 run | tee -ai $logfile