From 602d512f7552d66221c01ce4a02b3f71d3a4dd35 Mon Sep 17 00:00:00 2001 From: Flook Peter Date: Tue, 4 Jun 2024 14:21:36 +0800 Subject: [PATCH] Redirect output of time docker run --- benchmark/run_benchmark.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/benchmark/run_benchmark.sh b/benchmark/run_benchmark.sh index df37890..0e2e19c 100755 --- a/benchmark/run_benchmark.sh +++ b/benchmark/run_benchmark.sh @@ -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" \ @@ -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