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,188
non-test, non-generated
all calls
194,486
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,418
Buffer.Bytes 7,442
NewReader 7,244
Buffer.String 7,053
NewBuffer 4,351
Equal 4,291
Buffer.WriteByte 4,185
Buffer.Write 3,612
Buffer.Len 2,214
Buffer.WriteRune 1,642
Buffer.Reset 1,612
HasPrefix 1,275
Compare 1,057
TrimSpace 1,047
IndexByte 864
NewBufferString 651
Contains 572
Index 487
Buffer.ReadFrom 375
Split 328
Buffer.WriteTo 284
HasSuffix 264
Buffer.Next 252
ReplaceAll 250
Repeat 243
Buffer.Grow 243
TrimRight 215
Clone 197
Replace 191
Reader.Len 184
Buffer.Truncate 177
Join 165
Buffer.Read 165
TrimPrefix 147
Count 138
Trim 111
Reader.Seek 108
Buffer.ReadByte 108
SplitN 101
Cut 98
EqualFold 96
TrimSuffix 89
Buffer.AvailableBuffer 89
LastIndexByte 88
Reader.ReadByte 85
Reader.Reset 81
Buffer.ReadRune 80
TrimLeft 75
IndexAny 73
LastIndex 71