Skip to content
Merged
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 examples/cpp-cmake-codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CodSpeed

on:
push:
branches:
- "main" # or "master"
pull_request: # required to have reports on PRs
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:

permissions: # optional for public repositories
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed

jobs:
codspeed:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build C++ benchmarks
run: |
mkdir -p build && cd build
cmake -DCODSPEED_MODE=simulation ..
make -j

- name: Run C++ benchmarks
uses: CodSpeedHQ/action@v4
with:
mode: simulation
run: ./path/to/built/benchmark
32 changes: 32 additions & 0 deletions examples/go-codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CodSpeed

on:
push:
branches:
- "main" # or "master"
pull_request: # required to have reports on PRs
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:

permissions: # optional for public repositories
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed

jobs:
codspeed:
name: Run benchmarks
runs-on: codspeed-macro
steps:
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable

- name: Run Go benchmarks
uses: CodSpeedHQ/action@main
with:
mode: walltime # go only supports walltime mode
run: go test -bench=. -benchtime=5s
7 changes: 4 additions & 3 deletions examples/nodejs-typescript-codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ on:
# performance analysis in order to generate initial data.
workflow_dispatch:

permissions: # optional for public repositories
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed

jobs:
codspeed:
name: Run benchmarks
runs-on: ubuntu-latest
permissions: # optional for public repositories
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed
steps:
- uses: actions/checkout@v4

Expand Down
7 changes: 4 additions & 3 deletions examples/python-pytest-codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ on:
# performance analysis in order to generate initial data.
workflow_dispatch:

permissions: # optional for public repositories
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed

jobs:
codspeed:
name: Run benchmarks
runs-on: ubuntu-latest
permissions: # optional for public repositories
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed
steps:
- uses: actions/checkout@v4

Expand Down
7 changes: 4 additions & 3 deletions examples/rust-cargo-codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ on:
# performance analysis in order to generate initial data.
workflow_dispatch:

permissions: # optional for public repositories
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed

jobs:
codspeed:
name: Run benchmarks
runs-on: ubuntu-latest
permissions: # optional for public repositories
contents: read
id-token: write # for OpenID Connect authentication with CodSpeed
steps:
- uses: actions/checkout@v4

Expand Down
Loading