diff options
author | Raghavendra Bhat <raghavendrambk@gmail.com> | 2011-07-13 18:24:31 +0530 |
---|---|---|
committer | Raghavendra Bhat <raghavendrambk@gmail.com> | 2011-07-13 18:24:31 +0530 |
commit | d8ba6881617e9abc01e0fa13bb7e88037fb35315 (patch) | |
tree | bd384eff4e68e4129342b6c741d3c58febdf508f /legacy/performance/perf.sh | |
parent | cedf827e511a41f6335fbf3e66ce111eb01bd1d0 (diff) |
legacy performance scripts
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 "$@"; |