Skip to content

Commit 4a4e8d5

Browse files
adriencacciacodspeedbot
authored andcommitted
feat: add CodSpeed to the project
1 parent f379ee4 commit 4a4e8d5

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
@@ -70,7 +70,7 @@ url = "2.4.1"
7070
build-data = "0.1.5" # To set short commit-sha at build time
7171

7272
[dev-dependencies]
73-
criterion = { version = "0.5", features = ["html_reports", "async_tokio"] }
73+
criterion = { package="codspeed-criterion-compat", version = "2.6.0", features = ["html_reports", "async_tokio"] }
7474
goldenfile = "1.7.1"
7575
mockito = { version = "1.1.0", default-features = false, features = [] }
7676
pretty_assertions = "1.3.0"

v3/crates/lang-graphql/Cargo.toml

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

0 commit comments

Comments
 (0)