Skip to content

codspeed-benchmarks

codspeed-benchmarks #6

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: codspeed-benchmarks
on:
# Run on pushes to the main branch
push:
branches:
- "master"
# Run on pull requests
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@dcab3dcf9f278945f3f983bace1c7c84033433a7
with:
cache-target: release
bins: cargo-codspeed
- name: Build the benchmark target(s)
run: |
cargo codspeed build -p arrow --features test_utils,csv,json,chrono-tz,pyarrow,prettyprint
cargo codspeed build -p parquet --features arrow,test_common,experimental,default
cargo codspeed build -p arrow-array -p arrow-buffer -p arrow-cast -p arrow-json
- name: Run the benchmarks
uses: CodSpeedHQ/action@ab07afd34cbbb7a1306e8d14b7cc44e029eee37a
with:
run: cargo codspeed run