We're happy to announce a new instrument called "Walltime" that allows you to measure the wall time of your benchmarks. For now, this instrument is only available with CodSpeed Macro Runners, CodSpeed hosted bare metal runners that are optimized for running macro benchmarks, isolated from other noisy workloads.
Running Walltime measurements is as simple as changing the execution runner to
codspeed-macro
in GitHub Actions. Here's an example of how to do it:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
runs-on: codspeed-macro
steps:
- uses: actions/checkout@v4
# ...
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: "<Insert your benchmark command here>"
Then, you can see the wall time results in the CodSpeed dashboard:
More info on the WallTime instrument can be found in the documentation.
This feature is still in closed beta, but if you're interested in trying it out, please reach out to us on Discord or by email at support@codspeed.io.