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
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,12 @@ jobs:

- name: Run the benchmarks
uses: CodSpeedHQ/action@main
env:
CODSPEED_SKIP_UPLOAD: "true"
with:
run: cargo r --release --manifest-path ../go-runner/Cargo.toml -- test -bench=. example -benchtime=500ms
run: cargo r --release --manifest-path ../go-runner/Cargo.toml -- test -bench=BenchmarkFibonacciDarwin example -benchtime=500ms
working-directory: example
mode: walltime
# TODO: Remove this once the runner has been released with macos support
runner-version: branch:main
# TODO: Remove this once the runner has been released with the fix
runner-version: branch:cod-2762-samply-sigkills-dsymutil

go-runner-benchmarks:
runs-on: codspeed-macro
Expand Down
11 changes: 11 additions & 0 deletions example/fib_darwin_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//go:build darwin

package example

import "testing"

func BenchmarkFibonacciDarwin(b *testing.B) {
for b.Loop() {
fibonacci(25)
}
}
2 changes: 1 addition & 1 deletion go-runner/overlay/instrument-hooks.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package testing

/*
#cgo CFLAGS: -I@@INSTRUMENT_HOOKS_DIR@@/includes -Wno-format -Wno-format-security
#cgo CFLAGS: -I@@INSTRUMENT_HOOKS_DIR@@/includes -Wno-format -Wno-format-security -Wno-incompatible-pointer-types
#include "@@INSTRUMENT_HOOKS_DIR@@/dist/core.c"
*/
import "C"
Expand Down
2 changes: 1 addition & 1 deletion go-runner/src/runner/overlay/instrument_hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tar::Archive;
use tempfile::TempDir;

const INSTRUMENT_HOOKS_REPO: &str = "CodSpeedHQ/instrument-hooks";
const INSTRUMENT_HOOKS_COMMIT: &str = "ecdf31a3afd0fb879823e40df65129ec823d374b";
const INSTRUMENT_HOOKS_COMMIT: &str = "b9ddb5bc654b2e6fa13eb18efcd3a45e7ecda0bb";

/// Get the instrument-hooks directory, downloading if necessary
/// Downloads to /tmp/codspeed-instrument-hooks-{commit}/
Expand Down
Loading