Skip to content
callcount

package

bytes

standard library

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

Docs on pkg.go.dev ↗

prod calls
68,091
non-test, non-generated
all calls
200,404
total callsites
functions
50
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,410
Buffer.Bytes 7,430
NewReader 7,229
Buffer.String 7,038
NewBuffer 4,361
Equal 4,283
Buffer.WriteByte 4,177
Buffer.Write 3,610
Buffer.Len 2,212
Buffer.WriteRune 1,642
Buffer.Reset 1,610
HasPrefix 1,271
Compare 1,052
TrimSpace 1,036
IndexByte 856
NewBufferString 650
Contains 574
Index 487
Buffer.ReadFrom 375
Split 329
Buffer.WriteTo 284
HasSuffix 264
Buffer.Next 252
ReplaceAll 250
Repeat 243
Buffer.Grow 243
TrimRight 214
Clone 195
Replace 191
Reader.Len 184
Buffer.Truncate 176
Join 165
Buffer.Read 165
TrimPrefix 146
Count 137
Trim 111
Reader.Seek 108
Buffer.ReadByte 108
SplitN 101
Cut 97
EqualFold 96
TrimSuffix 89
Buffer.AvailableBuffer 89
LastIndexByte 89
Reader.ReadByte 85
Buffer.ReadRune 80
Reader.Reset 79
TrimLeft 74
IndexAny 73
LastIndex 71