Skip to content

Commit

Permalink
feat: add CodSpeed to the project
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia authored and CodSpeed Install Bot committed Jul 26, 2024
1 parent 4e63943 commit 277bf1e
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 81 deletions.
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
46 changes: 0 additions & 46 deletions .github/workflows/hlint.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/lint.yml

This file was deleted.

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

0 comments on commit 277bf1e

Please sign in to comment.