summaryrefslogtreecommitdiffstats
path: root/perf-framework/perf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'perf-framework/perf.sh')
-rwxr-xr-xperf-framework/perf.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/perf-framework/perf.sh b/perf-framework/perf.sh
new file mode 100755
index 0000000..1a4bdc6
--- /dev/null
+++ b/perf-framework/perf.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+perf_test ()
+{
+ ./perf-test.sh $mount_point >> $logfile
+}
+
+_init ()
+{
+ mount_point=$1;
+ logfile=$2
+}
+
+main ()
+{
+ echo "" > $logfile
+ perf_test;
+ perf_test;
+ perf_test;
+}
+
+
+_init "$@" && main "$@";