summaryrefslogtreecommitdiff
path: root/run.bonnie_io
diff options
context:
space:
mode:
authorfsgqa <fsgqa>2003-09-09 01:50:09 +0000
committerfsgqa <fsgqa>2003-09-09 01:50:09 +0000
commit25fcdbf2495e548308d9edc5fb30018a36268227 (patch)
tree0dfe79bb1bc2ddbcec5e320f871fc32668e2377e /run.bonnie_io
parent4f5db97682601b2c7a8539f803529f75759dfe00 (diff)
Make bench script output clearer for people reading the output first thing in the morning. ;)
Diffstat (limited to 'run.bonnie_io')
-rwxr-xr-xrun.bonnie_io16
1 files changed, 14 insertions, 2 deletions
diff --git a/run.bonnie_io b/run.bonnie_io
index fb08396d..8d0be806 100755
--- a/run.bonnie_io
+++ b/run.bonnie_io
@@ -8,6 +8,7 @@
BONNIE_FILESIZE=${BONNIE_FILESIZE:=500M}
BONNIE_CHUNKSIZE=${BONNIE_CHUNKSIZE:=1K}
+[ -z "$here" ] && here=`pwd`
. $here/common.bonnie
#
@@ -28,11 +29,22 @@ filter_stderr()
#
filter_stdout()
{
- tr -s ',' | sed -e 's/^,//' -e 's/,$//'
+ perl -ne '
+ chomp;
+ s/,+/,/g; s/^,//; s/,$//;
+ @values = split /,/;
+ printf "%9s", shift @values;
+ for ($i = 0; $i <= $#values; $i++) {
+ if ($i % 2) { printf ",%4s%%", $values[$i] }
+ else { printf ",%10s", $values[$i] }
+ }
+ printf "\n";
+ '
}
if [ $# -gt 0 ]; then
- echo "size:chnk,writeK/s,wCPU,rewriteK/s,rwCPU,readK/s,rCPU,seek/s,sCPU"
+ printf "%9s,%10s,%5s,%10s,%5s,%10s,%5s,%10s,%5s\n" size:chnk \
+ writeK/s wCPU rewriteK/s rwCPU readK/s rCPU seek/s sCPU
exit 0
fi
run_bonnie -n 0 -s $BONNIE_FILESIZE:$BONNIE_CHUNKSIZE