You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
Refactor benchmark CI (#7873)
Resolves #4537 This PR replaces the `github-action-benchmark` approach with CodSpeed. CodSpeed addresses: - The benchmark conflict issue: https://github.com/open-telemetry/opentelemetry-go/issues/4537#issuecomment-2294034235 - The maintenance burden for GitHub pages. - It allows partial performance test, which enables us to run benchmark for PRs in the future An example of benchmark result: https://codspeed.io/XSAM/opentelemetry-go/runs/697aa351f5662999a88a8bf3 Benchmark page for opentelemetry-go: https://codspeed.io/open-telemetry/opentelemetry-go --------- Co-authored-by: Robert Pająk <pellared@hotmail.com>
This commit is contained in:
@@ -185,11 +185,10 @@ test-coverage: $(GOCOVMERGE)
|
||||
.PHONY: benchmark
|
||||
benchmark: $(OTEL_GO_MOD_DIRS:%=benchmark/%)
|
||||
benchmark/%:
|
||||
@echo "$(GO) test -run=xxxxxMatchNothingxxxxx -bench=. $*..." \
|
||||
&& cd $* \
|
||||
&& $(GO) list ./... \
|
||||
| grep -v third_party \
|
||||
| xargs $(GO) test -run=xxxxxMatchNothingxxxxx -bench=.
|
||||
cd $* && $(GO) test -run='^$$' -bench=. $(ARGS) ./...
|
||||
|
||||
print-sharded-benchmarks:
|
||||
@echo $(OTEL_GO_MOD_DIRS) | jq -cR 'split(" ")'
|
||||
|
||||
.PHONY: golangci-lint golangci-lint-fix
|
||||
golangci-lint-fix: ARGS=--fix
|
||||
|
||||
Reference in New Issue
Block a user