Skip to content
callcount

package

reflect

standard library

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

Docs on pkg.go.dev ↗

prod calls
135,126
non-test, non-generated
all calls
223,056
total callsites
functions
89
ranked in this snapshot
origin
std
standard-library

members

Functions in reflect

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

Function Prod calls
ValueOf 18,075
Value.Elem 9,579
TypeOf 8,835
Value.Type 8,737
Value.Kind 7,888
Value.Set 7,689
Value.Interface 7,595
Type.Kind 6,473
Type.Elem 5,340
Value.Len 3,808
Value.IsNil 3,314
DeepEqual 3,210
Value.Index 2,622
Value.IsValid 2,549
New 2,242
Value.Field 2,019
Type.Field 1,939
Value.String 1,833
StructTag.Get 1,671
Value.FieldByName 1,620
Type.String 1,610
Value.Int 1,152
Value.Uint 1,083
Type.NumField 1,078
Type.Name 1,049
Indirect 1,025
Value.NumField 901
Value.Addr 880
Value.Float 849
Type.Implements 781
Zero 769
Value.CanSet 756
Value.Convert 728
Value.MapIndex 705
Value.Bool 601
Type.Key 539
Type.In 535
MakeSlice 509
Value.Pointer 507
Value.MapKeys 501
Value.SetInt 473
Type.NumIn 467
Value.CanAddr 445
Value.Call 434
Value.CanInterface 425
Value.SetMapIndex 417
Value.SetUint 410
Type.AssignableTo 399
Value.IsZero 373
Value.SetString 361
Append 338
Type.PkgPath 336
Type.Size 332
Type.NumOut 325
Type.Out 304
Type.ConvertibleTo 298
MakeMap 265
Value.SetFloat 264
Type.FieldByName 260
PtrTo 258
StructTag.Lookup 256
PointerTo 252
Value.SetBool 251
Value.MethodByName 243
Kind.String 243
Value.FieldByIndex 220
SliceOf 217
Value.MapRange 179
MapIter.Next 175
Type.NumMethod 162
StructField.IsExported 157
Value.Cap 153
MapIter.Key 150
MapIter.Value 150
Value.Bytes 146
Value.Slice 136
Value.Complex 132
Type.Len 125
Value.UnsafePointer 124
Type.Method 112
Type.Bits 107
Value.NumMethod 93
Type.IsVariadic 93
Value.SetZero 86
Copy 81
Value.SetLen 80
Value.UnsafeAddr 78
Value.SetBytes 73
NewAt 72