-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hyperloglog' of github.com:sundy-li/fuse-query into hyp…
…erloglog
- Loading branch information
Showing
27 changed files
with
734 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: Databend Suites Benchmark | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
sha: | ||
description: Git sha of benchmark | ||
required: true | ||
type: string | ||
run_id: | ||
description: The run id of benchmark | ||
required: true | ||
type: string | ||
source: | ||
description: The source of benchmark, pr/release | ||
required: true | ||
type: string | ||
source_id: | ||
description: The source id of benchmark, pr number/release tag | ||
required: true | ||
type: string | ||
version: | ||
description: The version of databend to run | ||
required: true | ||
type: string | ||
runner_provider: | ||
description: 'Self-hosted runner provider, aws or gcp' | ||
type: string | ||
required: true | ||
|
||
permissions: | ||
id-token: write | ||
pull-requests: write | ||
contents: read | ||
|
||
env: | ||
BUILD_PROFILE: release | ||
RUNNER_PROVIDER: ${{ inputs.runner_provider }} | ||
|
||
jobs: | ||
local: | ||
if: inputs.source == 'release' | ||
timeout-minutes: 60 | ||
runs-on: [self-hosted, X64, Linux, 4c8g, aws] | ||
strategy: | ||
matrix: | ||
dataset: | ||
- internal | ||
fail-fast: true | ||
max-parallel: 1 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
if: inputs.source == 'release' | ||
- uses: actions/checkout@v4 | ||
if: inputs.source == 'pr' | ||
with: | ||
ref: "refs/pull/${{ inputs.source_id }}/merge" | ||
- uses: ./.github/actions/setup_bendsql | ||
- name: Download artifact for pr | ||
if: inputs.source == 'pr' | ||
uses: ./.github/actions/artifact_download | ||
with: | ||
sha: ${{ inputs.sha }} | ||
target: x86_64-unknown-linux-gnu | ||
- name: Download artifact for release | ||
if: inputs.source == 'release' | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
version=${{ inputs.source_id }} | ||
target=x86_64-unknown-linux-gnu | ||
mkdir -p ./distro/ | ||
mkdir -p ./target/release/ | ||
gh release download ${version} --pattern "databend-${version}-${target}.tar.gz" --dir distro/ | ||
tar x -C ./target/release -f ./distro/databend-${version}-${target}.tar.gz --strip-components 1 bin/ | ||
chmod +x ./target/release/databend-* | ||
- name: Setup Databend Binary | ||
shell: bash | ||
run: | | ||
sudo cp ./target/release/databend-* /usr/local/bin/ | ||
databend-query --version | ||
databend-meta --version | ||
- uses: ./.github/actions/benchmark_local | ||
timeout-minutes: 30 | ||
id: benchmark_query_meta | ||
with: | ||
sha: ${{ inputs.sha }} | ||
run_id: ${{ inputs.run_id }} | ||
dataset: ${{ matrix.dataset }} | ||
source: ${{ inputs.source }} | ||
source_id: ${{ inputs.source_id }} | ||
benchmark: | ||
if: contains(github.event.pull_request.labels.*.name, 'ci-benchmark-suites') | ||
needs: [ info, build, docker ] | ||
uses: ./.github/workflows/reuse.benchmark_query_meta.yml | ||
secrets: inherit | ||
with: | ||
sha: ${{ needs.info.outputs.sha }} | ||
run_id: ${{ github.run_id }} | ||
source: pr | ||
source_id: ${{ github.event.pull_request.number }} | ||
version: ${{ needs.docker.outputs.tag }} | ||
runner_provider: github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Benchmark Directory | ||
|
||
This directory contains subdirectories dedicated to various performance tests, | ||
|
||
specifically for TPCH tests, Hits tests, and internal query performance tests. Below is a brief overview of each subdirectory: | ||
|
||
## 1. tpch | ||
|
||
This subdirectory includes performance evaluation tools and scripts related to TPCH tests. | ||
|
||
TPCH tests are designed to simulate complex query scenarios to assess the system's performance when handling large datasets. In this directory, you can find testing scripts, configuration files, and documentation for test results. | ||
|
||
## 2. hits | ||
|
||
Hits tests focus on specific queries or operations for performance testing. | ||
|
||
In this subdirectory, you'll find scripts for Hits tests, sample queries, and performance analysis tools. | ||
|
||
## 3. internal | ||
|
||
The internal subdirectory contains testing tools and scripts dedicated to ensuring the performance of internal queries. | ||
|
||
These tests may be conducted to ensure the system performs well when handling internal queries specific. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
# Used to test internal | ||
|
||
echo "drop database if exists test" | bendsql -uroot | ||
echo "create database test" | bendsql -uroot | ||
for((i=1;i<=1000;i++)); | ||
do | ||
echo "create table if not exists test.t_$i(id int comment 'tes\t', c2 string comment 'c2comment')" | bendsql -uroot | ||
|
||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- test system table query speed | ||
select * from system.tables where database='test' ignore_result; | ||
select * from system.columns where database='test' ignore_result; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.