diff --git a/perf/tpc-h/run.sh b/perf/tpc-h/run.sh index cafe0d523..50ad16f60 100755 --- a/perf/tpc-h/run.sh +++ b/perf/tpc-h/run.sh @@ -66,15 +66,15 @@ for query_file in $(ls "$QUERIES_DIR"/*.sql | sort -V); do # Clear caches before Limbo run clear_caches # Run Limbo - limbo_output=$(/usr/bin/time "$LIMBO_BIN" "$DB_FILE" --quiet --output-mode list "$(cat "$query_file")" 2>&1) - limbo_non_time_lines=$(echo "$limbo_output" | grep -v -e "real" -e "user" -e "sys") - limbo_real_time=$(echo "$limbo_output" | grep "real" | awk '{print $1}') + limbo_output=$( { time -p "$LIMBO_BIN" "$DB_FILE" --quiet --output-mode list "$(cat $query_file)" 2>&1; } 2>&1) + limbo_non_time_lines=$(echo "$limbo_output" | grep -v -e "^real" -e "^user" -e "^sys") + limbo_real_time=$(echo "$limbo_output" | grep "^real" | awk '{print $2}') echo "Running $query_name with SQLite3..." >&2 # Clear caches before SQLite execution clear_caches - sqlite_output=$(/usr/bin/time $SQLITE_BIN "$DB_FILE" "$(cat "$query_file")" 2>&1) - sqlite_non_time_lines=$(echo "$sqlite_output" | grep -v -e "real" -e "user" -e "sys") - sqlite_real_time=$(echo "$sqlite_output" | grep "real" | awk '{print $1}') + sqlite_output=$( { time -p "$SQLITE_BIN" "$DB_FILE" "$(cat $query_file)" 2>&1; } 2>&1) + sqlite_non_time_lines=$(echo "$sqlite_output" | grep -v -e "^real" -e "^user" -e "^sys") + sqlite_real_time=$(echo "$sqlite_output" | grep "^real" | awk '{print $2}') echo "Limbo real time: $limbo_real_time" echo "SQLite3 real time: $sqlite_real_time" echo "Limbo output:"