Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
log: improve Event benchmark to check redactability as well
More CPU and a slightly different allocation profile, though the allocations are largely driven by the arguments passed to `Eventf` and they are trivial in this benchmark. ``` go test ./pkg/util/log -run - -bench BenchmarkEvent -benchtime 3s goos: linux goarch: amd64 pkg: github.com/cockroachdb/cockroach/pkg/util/log cpu: AMD Ryzen 7 3800X 8-Core Processor BenchmarkEventf_WithVerboseTraceSpan/redactable=false-16 759444 4903 ns/op 961 B/op 18 allocs/op BenchmarkEventf_WithVerboseTraceSpan/redactable=true-16 561772 6831 ns/op 1081 B/op 16 allocs/op ``` Release note: None
- Loading branch information