diff options
Diffstat (limited to 'legacy/performance/perf.sh')
-rwxr-xr-x | legacy/performance/perf.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/legacy/performance/perf.sh b/legacy/performance/perf.sh new file mode 100755 index 0000000..65e54b2 --- /dev/null +++ b/legacy/performance/perf.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +perf_test () +{ + /opt/qa/tools/perf-test.git/perf-test.sh $mount_point | tee -a /export/perf-numbers; +} + +iozone_test () +{ + time iozone -a -f $mount_point/iozone.tmp | tee /export/iozone; +} + +bonnie_test () +{ + time bonnie++ -u root -d $mount_point | tee /export/bonnie; +} + +_init () +{ + mount_point=$1; +} + +main () +{ + perf_test; + iozone_test; + bonnie_test; +} + + +_init "$@" && main "$@"; |