Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: codspeed-benchmarks

on:
# Run on pushes to the master 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
- name: Setup rust toolchain, cache and cargo-codspeed binary
uses: moonrepo/setup-rust@v1
with:
cache-target: release
bins: cargo-codspeed

- name: Build the benchmark target(s)
working-directory: v3
run: cargo codspeed build -p engine -p lang-graphql

- name: Run the benchmarks
uses: CodSpeedHQ/action@v2
with:
working-directory: v3
run: cargo codspeed run -p engine -p lang-graphql
40 changes: 37 additions & 3 deletions v3/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ bytes = "1"
clap = "4"
convert_case = "0.6"
cookie = "0.18"
criterion = "0.5"
criterion = { package="codspeed-criterion-compat", version = "2.6.0" }
darling = "0.20"
derive_more = "0.99"
diffy = "0.4"
Expand Down