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.

19 lines
463 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. $bench --test=fileio --file-test-mode=seqwr run
  11. free && sync && sudo sh -c 'echo 3 > /proc/sys/vm/drop_caches' && free
  12. $bench --test=fileio --file-test-mode=seqrd run
  13. rm -f test_file.*
  14. #$bench --test=fileio --file-test-mode=rndwr run
  15. #$bench --test=fileio --file-test-mode=rndrd run
  16. #rm -f test_file.*