-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRunBench.sh
More file actions
executable file
·44 lines (42 loc) · 990 Bytes
/
RunBench.sh
File metadata and controls
executable file
·44 lines (42 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
logfile=runbench.log
datafile=testresults.csv
function persistent {
echo "Persistent test"
for i in {1,5}00000{,0,00,000}
#for i in {1,5}00000 #{,0,00,000}
do ./fbench $i fdata | tee -a $logfile | ./csvout.pl -out $datafile -type PERS
done
}
function ssd_persistent {
echo "Persistent test (SSD)"
for i in {1,5}00000{,0,00,000}
do ./fbench $i /mnt/SSD/kevin/fdata | tee -a $logfile | ./csvout.pl -out $datafile -type SSD
done
}
function hybrid_persistence {
echo "Hybrid Persistent test"
echo unavailable
for i in {1,5}00000{,0,00,000}
do ./fbench $i /mnt/Hybrid/fdata | tee -a $logfile | ./csvout.pl -out $datafile -type HYBRID
done
}
function no_persistence {
echo "Non persistent test"
for i in {1,5}00000{,0,00,000}
do ./fbench $i | tee -a $logfile | ./csvout.pl -out $datafile -type NOPERS
done
}
function basic {
persistent
no_persistence
}
function extra {
ssd_persistent
hybrid_persistence
}
function all {
basic
extra
}
[[ $# -gt 0 ]] && $1 || echo Invalid Benchmark