4 cat "$1" | grep -v '^#' | while read line
6 QNAME=`echo "$line" | cut -f 1 -d '%'`
7 QUERY=`echo "$line" | cut -f 2 -d '%'`
9 for mode in "-nc -nj" "-nc" "-nj" ""
11 output=`../../main.native -r "4" $mode -c "$DOC" "$QUERY" 2>&1`
13 time=`echo "$output" | grep "Execution time" | cut -f 2 -d',' | cut -f1 -d ':' | grep -o '[0-9.]*'`
14 TIME_COUNT=`echo "$time" | tail -n +2 | average`