From 631c81050032a6076615f7e801260d559b59ad54 Mon Sep 17 00:00:00 2001 From: Alexander Kuzmenkov Date: Wed, 22 Apr 2020 22:41:40 +0300 Subject: [PATCH] performance comparison --- docker/test/performance-comparison/Dockerfile | 1 + docker/test/performance-comparison/compare.sh | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/test/performance-comparison/Dockerfile b/docker/test/performance-comparison/Dockerfile index dd9edb0a95f..abdf8130c14 100644 --- a/docker/test/performance-comparison/Dockerfile +++ b/docker/test/performance-comparison/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update \ bash \ curl \ g++ \ + gdb \ git \ libc6-dbg \ moreutils \ diff --git a/docker/test/performance-comparison/compare.sh b/docker/test/performance-comparison/compare.sh index 0f208591cb2..70da35ace3b 100755 --- a/docker/test/performance-comparison/compare.sh +++ b/docker/test/performance-comparison/compare.sh @@ -180,7 +180,7 @@ function get_profiles_watchdog { sleep 3000 - echo "The trace collection did not finish in time." >> report-errors.rep + echo "The trace collection did not finish in time." >> profile-errors.log for pid in $(pgrep -f clickhouse) do @@ -250,6 +250,8 @@ done rm ./*.{rep,svg} test-times.tsv test-dump.tsv unstable.tsv unstable-query-ids.tsv unstable-query-metrics.tsv changed-perf.tsv unstable-tests.tsv unstable-queries.tsv bad-tests.tsv slow-on-client.tsv all-queries.tsv ||: +cat profile-errors.log >> report-errors.rep + clickhouse-local --query " create table queries engine File(TSVWithNamesAndTypes, 'queries.rep') as select @@ -447,7 +449,7 @@ unset IFS # Remember that grep sets error code when nothing is found, hence the bayan # operator. -grep -H -m2 -i '\(Exception\|Error\):[^:]' ./*-err.log | sed 's/:/\t/' > run-errors.tsv ||: +grep -H -m2 -i '\(Exception\|Error\):[^:]' ./*-err.log | sed 's/:/\t/' >> run-errors.tsv ||: } # Check that local and client are in PATH