chore(deps): update datafusion to v43 (major) (#1261) #858
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
name: Benchmarks | |
on: | |
push: | |
branches: [ develop ] | |
permissions: | |
actions: read | |
contents: write | |
deployments: write | |
jobs: | |
bench: | |
strategy: | |
matrix: | |
benchmark: | |
- id: datafusion | |
name: DataFusion | |
- id: random_access | |
name: Random Access | |
- id: tpch | |
name: TPC-H | |
- id: compress_noci | |
name: Vortex Compression | |
- id: bytes_at | |
name: Vortex bytes_at | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/cleanup | |
- uses: ./.github/actions/setup-rust | |
- uses: spiraldb/actions/.github/actions/setup-uv@0.2.0 | |
# The compression benchmarks rely on DuckDB being installed to convert CSV to Parquet | |
- name: Install DuckDB | |
uses: opt-nc/setup-duckdb-action@v1.0.9 | |
if: runner.environment != 'self-hosted' | |
with: | |
version: v1.0.0 | |
- name: Set tempdir | |
if: runner.environment == 'self-hosted' | |
run: | | |
echo "TMPDIR=/work" >> $GITHUB_ENV | |
- name: Run benchmark | |
shell: bash | |
env: | |
BENCH_VORTEX_RATIOS: '.*' | |
RUSTFLAGS: '-C target-cpu=native' | |
run: | | |
cargo install cargo-criterion | |
cargo criterion --bench ${{ matrix.benchmark.id }} --message-format=json 2>&1 | tee out.json | |
cat out.json | |
sudo apt-get update && sudo apt-get install -y jq | |
jq --raw-input --compact-output ' | |
fromjson? | |
| [ (if .mean != null then {name: .id, value: .mean.estimate, unit: .unit, range: ((.mean.upper_bound - .mean.lower_bound) / 2) } else {} end), | |
(if .throughput != null then {name: (.id + " throughput"), value: .throughput[].per_iteration, unit: .throughput[].unit, range: 0} else {} end), | |
{name, value, unit, range} ] | |
| .[] | |
| select(.value != null) | |
' \ | |
out.json \ | |
| jq --slurp --compact-output '.' >${{ matrix.benchmark.id }}.json | |
cat ${{ matrix.benchmark.id }}.json | |
- name: Store benchmark result | |
if: '!cancelled()' | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: ${{ matrix.benchmark.name }} | |
tool: 'customSmallerIsBetter' | |
gh-pages-branch: gh-pages-bench | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
output-file-path: ${{ matrix.benchmark.id }}.json | |
summary-always: true | |
auto-push: true | |
fail-on-alert: false | |
env: | |
# AWS Credentials for R2 storage tests | |
AWS_BUCKET: vortex-test | |
AWS_ENDPOINT: ${{ secrets.AWS_ENDPOINT }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |