x/perf/benchstat: no output when parsing go test
results on windows
#61247
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?and
Does this issue reproduce with the latest release?
did not test
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
clone https://github.com/brandondube/pctl
in the root pctl folder,
go test -count=10 -bench . > bench.txt
This produces the file:
bench.txt
The line endings are CRLF, but changing them to LF does not change the behavior of benchstat.
After doing so, invoke benchstat:
This produces a null output, and benchstat's return code is 0. I expected to see the usual benchstat output.
Running the same benchmark on windows subsystem for linux, with go 1.20.5, produces the file
bench.txt
with LF line endings. Benchstat produces the expected output in this case, regardless of whether it is called from Windows or WSL:
$ benchstat bench.txt # no output, returns 0 $ benchstat benchwsl.txt goos: linux goarch: amd64 pkg: github.com/brandondube/pctl cpu: AMD Ryzen 9 7950X 16-Core Processor │ benchwsl.txt │ │ sec/op │ PIDLoop-32 2.168n ± 1% LPF-32 3.190n ± 0% HPF-32 2.654n ± 0% Biquad-32 3.191n ± 0% StateSpace-32 7.301n ± 1% Setpoint-32 0.1801n ± 1% FIRFilter-32 6.943n ± 2% geomean 2.453n
The text was updated successfully, but these errors were encountered: