Skip to content

Commit

Permalink
Print out logs of first docker run, try get real time from linux
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Jun 4, 2024
1 parent 497fefe commit f3682bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benchmark/run_benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ run_docker() {
-e "ADDITIONAL_OPTS=$additional_conf" \
--network "docker_default" \
datacatering/data-caterer"$image_suffix":"$data_caterer_version";
} 2>&1 | tail -1 | sed "$sed_option" "s/^ +([0-9\.]+) real.*$/\1/")
} 2>&1 | grep "real " | sed "$sed_option" "s/^ +([0-9\.]+) real.*$/\1/")
if [[ $1 == *BenchmarkForeignKeyPlanRun* ]]; then
final_record_count=$(($2 * 5))
else
Expand Down Expand Up @@ -112,6 +112,8 @@ if [[ "$enable_data_sink_run" == true ]]; then
done
fi

docker ps -a | head -1 | awk -F " " '{print $1}' | xargs docker logs

echo "Printing benchmark results"
cat "$benchmark_result_file"

Expand Down

0 comments on commit f3682bc

Please sign in to comment.