- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkRecord (0.24 sec)
-
src/log/slog/record_test.go
b.Run(strconv.Itoa(depth), func(b *testing.B) { b.ReportAllocs() var x uintptr for i := 0; i < b.N; i++ { x = callerPC(depth) } _ = x }) } } func BenchmarkRecord(b *testing.B) { const nAttrs = nAttrsInline * 10 var a Attr for i := 0; i < b.N; i++ { r := NewRecord(time.Time{}, LevelInfo, "", 0) for j := 0; j < nAttrs; j++ { r.AddAttrs(Int("k", j)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 15:10:55 UTC 2023 - 4K bytes - Viewed (0)