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
7 changes: 6 additions & 1 deletion .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ jobs:
channel: stable
cache-target: release

- name: Build benchmarks
run: make benchmark-build
env:
CODSPEED_RUNNER_MODE: ${{ vars.CODSPEED_MODE }} # Set by the CodSpeed action for benchmark-run

- name: Run benchmarks
uses: CodSpeedHQ/action@78102a468f96d8e0ccb92d0ec49425753fc42062 # v5.6.0
with:
mode: ${{ vars.CODSPEED_MODE }}
run: make benchmark
run: make benchmark-run
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ SDK_BENCHMARKS := benchmarks/fixtures/sdk-benchmarks
$(SDK_BENCHMARKS)/environments:
git submodule update --init -- $(SDK_BENCHMARKS)

.PHONY: benchmark
benchmark: | $(SDK_BENCHMARKS)/environments
.PHONY: benchmark benchmark-build benchmark-run
benchmark: benchmark-build benchmark-run
Comment thread
emyller marked this conversation as resolved.
Resolved

# Kept apart from benchmark-run: CodSpeed's simulation mode runs its whole command under Valgrind
benchmark-build: | $(SDK_BENCHMARKS)/environments
cargo install --locked cargo-codspeed@$(CARGO_CODSPEED_VERSION)
cd benchmarks && cargo codspeed build --locked

benchmark-run: | $(SDK_BENCHMARKS)/environments
cd benchmarks && SDK_BENCHMARKS_ENVIRONMENTS=$(CURDIR)/$(SDK_BENCHMARKS)/environments cargo codspeed run
Loading