~bigbes/sr-ht-ecore: b352133b

bearer: silence the std logger the benchmarks were timing

sr-ht-core's auth.DecodeBearerToken calls log.Printf on every token it
refuses, so BenchmarkValidate/invalid wrote one line per iteration. The cost
was not the file: log.Printf takes a mutex, and the case reported 925 ns/op
where the work is 92.5.

The file was a hazard too. An unfiltered run of this package produced 9.5
million lines and 901 MB, and benchfmt skips what it cannot parse — so
bench.sr.ht would have accepted that upload and reported success over it.

Ignore cover.out and bench.txt: make cover and make bench write them into
the checkout.

Eugene Blikh <bigbes@gmail.com> — 2026-08-16 04:56:07 UTC

Commit b352133b3cfcde8afeb58127bf01d31735faa2feview raw patch

Parent(s): 54025f42

2 changed file(s)

FileStatus+
.gitignore M +2
bearer/bearer_bench_test.go M +27