1- name : " Benchmark"
2- description : " Run benchmark"
1+ name : " Benchmark Local "
2+ description : " Run benchmark for local filesystem "
33inputs :
4- storage :
5- description : " s3/fs"
4+ sha :
5+ description : " commit sha"
6+ required : true
7+ run_id :
8+ description : " benchmark run id"
69 required : true
710 dataset :
811 description : " hits/tpch"
@@ -16,30 +19,6 @@ inputs:
1619runs :
1720 using : " composite"
1821 steps :
19- - name : Download artifact
20- uses : ./.github/actions/artifact_download
21- with :
22- profile : release
23- sha : ${{ github.sha }}
24- target : x86_64-unknown-linux-gnu
25-
26- - name : Setup Databend Binary
27- shell : bash
28- run : |
29- sudo cp ./target/release/databend-query /usr/local/bin/databend-query
30- sudo cp ./target/release/databend-meta /usr/local/bin/databend-meta
31- databend-query --version
32- databend-meta --version
33-
34- - name : Setup BendSQL
35- shell : bash
36- run : |
37- curl -fsSLo ./bendsql.tar.gz https://github.com/databendcloud/bendsql/releases/download/v0.3.5/bendsql-linux-amd64.tar.gz
38- tar -xvzf ./bendsql.tar.gz
39- chmod +x ./linux-amd64/bendsql
40- sudo cp ./linux-amd64/bendsql /usr/local/bin/bendsql
41- bendsql version
42-
4322 - name : Install script dependencies
4423 shell : bash
4524 run : |
@@ -49,29 +28,16 @@ runs:
4928 - name : Run Benchmark
5029 working-directory : benchmark/clickbench
5130 env :
52- BENCHMARK_ID : ${{ github.run_id }}
53- BENCHMARK_STORAGE : ${{ inputs.storage }}
31+ BENCHMARK_ID : ${{ inputs.run_id }}
5432 BENCHMARK_DATASET : ${{ inputs.dataset }}
5533 shell : bash
5634 run : |
57- ./benchmark .sh
35+ ./benchmark_local .sh
5836
5937 - name : Prepare Metadata
6038 working-directory : benchmark/clickbench
6139 shell : bash
6240 run : |
63- case ${{ inputs.storage }} in
64- s3)
65- BENCHMARK_STORAGE="s3"
66- ;;
67- fs)
68- BENCHMARK_STORAGE="gp3"
69- ;;
70- *)
71- echo "Unspported benchmark storage: ${{ inputs.storage }}"
72- exit 1
73- esac
74-
7541 case ${{ inputs.source }} in
7642 pr)
7743 BENCHMARK_SYSTEM="Databend(PR#${{ inputs.source_id }})"
@@ -87,18 +53,18 @@ runs:
8753 esac
8854 jq ".system = \"${BENCHMARK_SYSTEM}\"" <result.json >result.json.tmp && mv result.json.tmp result.json
8955 jq ".date = \"$(date -u +%Y-%m-%d)\"" <result.json >result.json.tmp && mv result.json.tmp result.json
90- jq ".machine = \"c5.4xlarge,${BENCHMARK_STORAGE} \"" <result.json >result.json.tmp && mv result.json.tmp result.json
56+ jq ".machine = \"c5.4xlarge,gp3 \"" <result.json >result.json.tmp && mv result.json.tmp result.json
9157 jq ".cluster_size = 1" <result.json >result.json.tmp && mv result.json.tmp result.json
92- jq ".comment = \"commit:${{ github .sha }}\"" <result.json >result.json.tmp && mv result.json.tmp result.json
93- jq ".tags = [\"${BENCHMARK_TYPE}\", \"${BENCHMARK_STORAGE} \"]" <result.json >result.json.tmp && mv result.json.tmp result.json
58+ jq ".comment = \"commit:${{ inputs .sha }}\"" <result.json >result.json.tmp && mv result.json.tmp result.json
59+ jq ".tags = [\"${BENCHMARK_TYPE}\", \"gp3 \"]" <result.json >result.json.tmp && mv result.json.tmp result.json
9460 jq ".extra.${{ inputs.source }} = \"${{ inputs.source_id }}\"" <result.json >result.json.tmp && mv result.json.tmp result.json
95- mv result.json result-${{ inputs.dataset }}-${{ inputs.storage }} .json
61+ mv result.json result-${{ inputs.dataset }}-local .json
9662
9763 - name : Upload artifact
9864 uses : actions/upload-artifact@v3
9965 with :
100- name : benchmark-${{ inputs.dataset }}-${{ inputs.storage }}
101- path : benchmark/clickbench/result-${{ inputs.dataset }}-${{ inputs.storage }} .json
66+ name : benchmark-${{ inputs.dataset }}-local
67+ path : benchmark/clickbench/result-${{ inputs.dataset }}-local .json
10268
10369 - name : Clean test data
10470 working-directory : benchmark/clickbench
0 commit comments