Skip to content

Commit

Permalink
Redirect output of time docker run
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jun 4, 2024
1 parent 4b7433f commit 602d512
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions benchmark/run_benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ run_docker() {
*) additional_conf="";;
esac

#2>&1
time_taken=$({
time -p docker run -p 4040:4040 \
-v "$(pwd)/build/libs/data-caterer-example-0.1.0.jar:/opt/spark/jars/data-caterer.jar" \
Expand All @@ -63,7 +62,7 @@ run_docker() {
-e "$executor_memory" \
-e "ADDITIONAL_OPTS=$additional_conf" \
datacatering/data-caterer"$image_suffix":"$data_caterer_version";
} | grep "real " | sed "$sed_option" "s/^.*real ([0-9\.]+)$/\1/")
} 2>&1 | grep "real " | sed "$sed_option" "s/^.*real ([0-9\.]+)$/\1/")
if [[ $1 == *BenchmarkForeignKeyPlanRun* ]]; then
final_record_count=$(($2 * 5))
else
Expand Down

0 comments on commit 602d512

Please sign in to comment.