ClickHouse/tests/queries/0_stateless/01600_benchmark_query.sh

14 lines
335 B
Bash
Raw Normal View History

2020-12-07 08:35:44 +00:00
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2020-12-28 11:46:53 +00:00
# shellcheck source=../shell_config.sh
2020-12-07 08:35:44 +00:00
. "$CURDIR"/../shell_config.sh
2021-03-26 16:40:02 +00:00
LOG="$CLICKHOUSE_TMP/err-$CLICKHOUSE_DATABASE"
$CLICKHOUSE_BENCHMARK --iterations 10 --query "SELECT 1" 1>/dev/null 2>"$LOG"
2020-12-07 08:35:44 +00:00
2021-03-26 16:40:02 +00:00
cat "$LOG" | grep Exception
cat "$LOG" | grep Loaded
2020-12-07 08:35:44 +00:00
2021-03-26 16:40:02 +00:00
rm "$LOG"