-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.19 KB
/
benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Benchmark Matrix
on:
workflow_dispatch:
inputs:
ITERATIONS:
description: 'Test iterations, default 3'
required: false
jobs:
bench:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
DBNAME: [ "chdb", "duckdb", "glaredb", "databend", "datafusion"]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry pytest
poetry lock --no-update
poetry install
wget -q https://d37ci6vzurychx.cloudfront.net/trip-data/yellow_tripdata_2023-01.parquet
# - name: Workflow Telemetry
# uses: runforesight/[email protected]
- name: Test with poetry
env:
ITERATIONS: ${{ github.event.inputs.ITERATIONS || 3 }}
DBNAME: ${{ matrix.DBNAME }}
run: |
poetry run python3 benchmark.py > /tmp/report.txt
- name: Summary Report
run: |
echo "### ${{ matrix.DBNAME }}" >> $GITHUB_STEP_SUMMARY
cat /tmp/report.txt >> $GITHUB_STEP_SUMMARY