Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Apr 28, 2023
1 parent ad145a5 commit 68f038f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions benchmarks/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ COMMAND=
BENCHMARK=all
DATAFUSION_DIR=${DATAFUSION_DIR:-$SCRIPT_DIR/..}
DATA_DIR=${DATA_DIR:-$SCRIPT_DIR/data}
#CARGO_COMMAND=$CARGO_COMMAND:"cargo run --release"}
CARGO_COMMAND=${CARGO_COMMAND:-"cargo run --profile release-nonlto"} # TEMP: for faster iterations

usage() {
echo "
Expand Down Expand Up @@ -151,8 +153,6 @@ main() {
BRANCH_NAME=$(cd ${DATAFUSION_DIR} && git rev-parse --abbrev-ref HEAD)
BRANCH_NAME=${BRANCH_NAME//\//_} # mind blowing syntax to replace / with _
RESULTS_DIR=${RESULTS_DIR:-"$SCRIPT_DIR/results/$BRANCH_NAME"}
#CARGO_COMMAND=$CARGO_COMMAND:"cargo run --release"}
CARGO_COMMAND=${CARGO_COMMAND:-"cargo run --profile release-nonlto"} # TEMP: for faster iterations

echo "***************************"
echo "DataFusion Benchmark Script"
Expand Down Expand Up @@ -184,7 +184,7 @@ main() {
usage
;;
esac
popd "${DATAFUSION_DIR}/benchmarks" > /dev/null
popd > /dev/null
echo "Done"
;;
compare)
Expand Down Expand Up @@ -234,7 +234,9 @@ data_tpch() {
echo " parquet files exist ($FILE exists)."
else
echo " creating parquet files using benchmark binary ..."
pushd "${SCRIPT_DIR}" > /dev/null
$CARGO_COMMAND --bin tpch -- convert --input "${DATA_DIR}" --output "${DATA_DIR}" --format parquet
popd > /dev/null
fi
}

Expand Down

0 comments on commit 68f038f

Please sign in to comment.