Skip to content

Commit 0281ac2

Browse files
adriencacciacodspeedbot
authored andcommitted
feat: add CodSpeed to the project
1 parent e0b8d67 commit 0281ac2

6 files changed

Lines changed: 71 additions & 81 deletions

File tree

.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: 36 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v3/crates/engine/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tower-http = { version = "0.4", features = ["trace", "cors", "fs"] }
5656
build-data = "0.2.1" # To set short commit-sha at build time
5757

5858
[dev-dependencies]
59-
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
59+
criterion = { package="codspeed-criterion-compat", version = "2.6.0", features = ["html_reports", "async_tokio"] }
6060
goldenfile = "1.7.1"
6161
pretty_assertions = "1.3.0"
6262
tokio-test = "0.4.2"

v3/crates/lang-graphql/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ apollo-parser = "0.7"
4444
async-graphql-parser = "7.0"
4545
bincode = "1.3.3"
4646
bson = "2.11.0"
47-
criterion = { version = "0.5", features = ["html_reports"] }
47+
criterion = { package="codspeed-criterion-compat", version = "2.6.0", features = ["html_reports"] }
4848
diffy = "0.3.0"
4949
expect-test = "1.5"
5050
graphql-parser = "0.4"

0 commit comments

Comments
 (0)