diff options
Diffstat (limited to 'common/scripts/parse_lmbench.sh')
-rwxr-xr-x | common/scripts/parse_lmbench.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/scripts/parse_lmbench.sh b/common/scripts/parse_lmbench.sh new file mode 100755 index 0000000..1036b69 --- /dev/null +++ b/common/scripts/parse_lmbench.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +LOG_FILE=$1 +OUTPUT_FILE=$3 +TMP_FILE="$1.$$" +BEGIN=$(grep -n "^BEGIN LMBENCH" $LOG_FILE | awk -F ':' '{print $1}') +END=$(grep -n "^END LMBENCH" $LOG_FILE | awk -F ':' '{print $1}') +BEGINNING=$(expr $(expr $END - $BEGIN) + 1) +head -n $END $LOG_FILE | tail -n $BEGINNING >$TMP_FILE + +for i in 2 8 16 20 +do + ./common/scripts/min_max_avg_parse.py $TMP_FILE "^$i" $2 "64_$i" >>$OUTPUT_FILE +done +rm $TMP_FILE |