Skip to content

ci: run benchmarks using Codspeed#80

Merged
marten-seemann merged 2 commits intomasterfrom
codspeed-benchmarks
Jan 7, 2026
Merged

ci: run benchmarks using Codspeed#80
marten-seemann merged 2 commits intomasterfrom
codspeed-benchmarks

Conversation

@marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Jan 7, 2026

Add CodSpeed benchmark job to CI to run Go benchmarks on push to master, pull requests, and manual dispatch using walltime mode on the codspeed-macro runner

Add a 'Benchmarks' GitHub Actions workflow that checks out code, sets up Go 1.25.x, and runs CodSpeedHQ/action@v4 with mode=walltime executing go test -run=^$ -bench=. ./... on the codspeed-macro runner.

📍Where to Start

Start with the workflow definition in benchmark.yml.


Macroscope summarized 9f4564c.

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.62%. Comparing base (1661efa) to head (9f4564c).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #80   +/-   ##
=======================================
  Coverage   93.62%   93.62%           
=======================================
  Files           5        5           
  Lines         188      188           
=======================================
  Hits          176      176           
  Misses          6        6           
  Partials        6        6           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a new GitHub Actions workflow to run Go benchmarks using CodSpeed, a continuous benchmarking platform. The workflow is triggered on pushes to the master branch, pull requests, and manual workflow dispatches.

Key Changes:

  • Adds a new benchmark workflow file that integrates with CodSpeed for performance tracking
  • Configures the workflow to run all Go benchmarks in the repository using go test -bench=.
  • Uses CodSpeed's specialized runner (codspeed-macro) for consistent benchmark measurements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.25.x"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go-version is set to 1.25.x, which doesn’t exist. Consider using a valid release (e.g., 1.22.x) so actions/setup-go can install it.

Suggested change
go-version: "1.25.x"
go-version: "1.22.x"

🚀 Want me to fix this? Reply ex: "fix it for me".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What an utter nonsense.

@codspeed-hq
Copy link

codspeed-hq bot commented Jan 7, 2026

CodSpeed Performance Report

Congrats! CodSpeed is installed 🎉

🆕 4 new benchmarks were detected.

You will start to see performance impacts in the reports once the benchmarks are run from your default branch.

Detected benchmarks

@marten-seemann marten-seemann merged commit 9baf15a into master Jan 7, 2026
11 checks passed
@marten-seemann marten-seemann deleted the codspeed-benchmarks branch January 9, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants