-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Installing the most recent version with
go install go.bobheadxi.dev/gobenchdata@latest
and using it as described in the README yields an error:
go test -v -benchmem -bench . -run ^$ -count 1 . | gobenchdata --json bench.json
BenchmarkSanitizedCopy: could not parse run: strconv.Atoi: parsing "": invalid syntax (line: BenchmarkSanitizedCopy): "BenchmarkSanitizedCopy"
The output seems to be just fine without using gobenchdata:
go test -v -benchmem -bench . -run ^$ -count 1 -json ./internal/dataplane/kongstate
{"Time":"2024-11-07T16:32:08.944142+01:00","Action":"start","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate"}
{"Time":"2024-11-07T16:32:09.410573+01:00","Action":"output","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Output":"goos: darwin\n"}
{"Time":"2024-11-07T16:32:09.410829+01:00","Action":"output","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Output":"goarch: arm64\n"}
{"Time":"2024-11-07T16:32:09.410862+01:00","Action":"output","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Output":"pkg: github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate\n"}
{"Time":"2024-11-07T16:32:09.410869+01:00","Action":"output","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Output":"cpu: Apple M1 Max\n"}
{"Time":"2024-11-07T16:32:09.410878+01:00","Action":"output","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Output":"BenchmarkSanitizedCopy\n"}
{"Time":"2024-11-07T16:32:11.53412+01:00","Action":"output","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Output":"BenchmarkSanitizedCopy-10 \t 4878\t 245447 ns/op\t 778485 B/op\t 5 allocs/op\n"}
{"Time":"2024-11-07T16:32:11.534178+01:00","Action":"output","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Output":"PASS\n"}
{"Time":"2024-11-07T16:32:11.53497+01:00","Action":"output","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Output":"ok \tgithub.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate\t2.589s\n"}
{"Time":"2024-11-07T16:32:11.534994+01:00","Action":"pass","Package":"github.com/kong/kubernetes-ingress-controller/v3/internal/dataplane/kongstate","Elapsed":2.591}
programmer04
Metadata
Metadata
Assignees
Labels
No labels