Skip to content

Commit 4e6ff5c

Browse files
adriencacciaCodSpeed Install Bot
authored andcommitted
feat: add CodSpeed to the project
1 parent 00fa5c4 commit 4e6ff5c

File tree

5 files changed

+71
-81
lines changed

5 files changed

+71
-81
lines changed

.github/workflows/benchmark.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: codspeed-benchmarks
2+
3+
on:
4+
# Run on pushes to the master branch
5+
push:
6+
branches:
7+
- "master"
8+
# Run on pull requests
9+
pull_request:
10+
# `workflow_dispatch` allows CodSpeed to trigger backtest
11+
# performance analysis in order to generate initial data.
12+
workflow_dispatch:
13+
14+
jobs:
15+
benchmarks:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Setup rust toolchain, cache and cargo-codspeed binary
20+
uses: moonrepo/setup-rust@v1
21+
with:
22+
cache-target: release
23+
bins: cargo-codspeed
24+
25+
- name: Build the benchmark target(s)
26+
working-directory: v3
27+
run: cargo codspeed build -p engine -p lang-graphql
28+
29+
- name: Run the benchmarks
30+
uses: CodSpeedHQ/action@v2
31+
with:
32+
working-directory: v3
33+
run: cargo codspeed run -p engine -p lang-graphql

.github/workflows/hlint.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

v3/Cargo.lock

Lines changed: 37 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v3/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ bytes = "1"
7070
clap = "4"
7171
convert_case = "0.6"
7272
cookie = "0.18"
73-
criterion = "0.5"
73+
criterion = { package="codspeed-criterion-compat", version = "2.6.0" }
7474
darling = "0.20"
7575
derive_more = "0.99"
7676
diffy = "0.4"

0 commit comments

Comments
 (0)