Skip to content
callcount

package

bytes

standard library

49 standard-library functions from bytes, ranked by how often they are called outside tests and generated code.

Docs on pkg.go.dev ↗

prod calls
69,960
non-test, non-generated
all calls
195,143
total callsites
functions
49
ranked in this snapshot
origin
std
standard-library

members

Functions in bytes

Ranked by production calls. The bar scales each function against the busiest in this package.

Function Prod calls
Buffer.WriteString 13,547
Buffer.Bytes 7,583
NewReader 7,538
Buffer.String 7,066
Equal 4,524
NewBuffer 4,340
Buffer.WriteByte 4,263
Buffer.Write 3,729
Buffer.Len 2,293
Buffer.Reset 1,642
Buffer.WriteRune 1,638
HasPrefix 1,347
TrimSpace 1,186
Compare 1,084
IndexByte 960
NewBufferString 652
Contains 629
Index 476
Buffer.ReadFrom 374
Split 332
Buffer.WriteTo 284
HasSuffix 279
Clone 275
Repeat 266
ReplaceAll 258
Buffer.Next 257
Buffer.Grow 252
TrimRight 242
Reader.Len 196
Replace 191
Buffer.Truncate 185
Join 168
Buffer.Read 168
TrimPrefix 158
Count 152
Cut 141
Trim 132
TrimSuffix 112
EqualFold 111
Reader.Seek 110
Buffer.ReadByte 108
SplitN 101
LastIndexByte 97
Buffer.AvailableBuffer 95
TrimLeft 89
Reader.Reset 86
Reader.ReadByte 82
IndexAny 82
Buffer.ReadRune 80