- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for ReportAllocs (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
cmd/storage-datatypes_gen_test.go
func BenchmarkMarshalMsgBaseOptions(b *testing.B) { v := BaseOptions{} b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { v.MarshalMsg(nil) } } func BenchmarkAppendMsgBaseOptions(b *testing.B) { v := BaseOptions{} bts := make([]byte, 0, v.Msgsize()) bts, _ = v.MarshalMsg(bts[0:0]) b.SetBytes(int64(len(bts))) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 73.9K bytes - Click Count (0) -
src/bufio/bufio_test.go
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Fri Feb 07 01:08:54 GMT 2025 - 51.6K bytes - Click Count (0) -
src/bytes/bytes_test.go
desc := fmt.Sprintf("%q %q %q %d", tt.in, tt.old, tt.new, tt.n) var ( in = []byte(tt.in) old = []byte(tt.old) new = []byte(tt.new) ) b.Run(desc, func(b *testing.B) { b.ReportAllocs() for b.Loop() { Replace(in, old, new, tt.n) } }) } } type TitleTest struct { in, out string } var TitleTests = []TitleTest{ {"", ""},
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0)