Skip to content
callcount

package

reflect

standard library

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

Docs on pkg.go.dev ↗

prod calls
131,482
non-test, non-generated
all calls
214,962
total callsites
functions
88
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 17,721
Value.Elem 9,302
TypeOf 8,899
Value.Type 8,474
Value.Kind 7,608
Value.Set 7,545
Value.Interface 7,496
Type.Kind 6,184
Type.Elem 5,127
Value.Len 3,694
Value.IsNil 3,186
DeepEqual 3,088
Value.Index 2,565
Value.IsValid 2,446
New 2,156
Value.Field 2,004
Type.Field 1,908
Value.String 1,772
StructTag.Get 1,652
Value.FieldByName 1,612
Type.String 1,581
Value.Int 1,102
Type.NumField 1,060
Value.Uint 1,047
Type.Name 1,023
Indirect 1,019
Value.NumField 888
Value.Addr 883
Value.Float 811
Value.CanSet 743
Zero 738
Type.Implements 719
Value.Convert 711
Value.MapIndex 695
Value.Bool 585
Type.In 513
Type.Key 512
Value.MapKeys 500
MakeSlice 496
Value.Pointer 477
Value.SetInt 469
Type.NumIn 448
Value.CanAddr 436
Value.Call 424
Value.CanInterface 423
Value.SetUint 408
Value.SetMapIndex 401
Type.AssignableTo 371
Value.IsZero 364
Value.SetString 356
Append 335
Type.PkgPath 320
Type.NumOut 318
Type.Out 298
Type.ConvertibleTo 293
Type.Size 292
Value.SetFloat 267
PtrTo 262
MakeMap 256
StructTag.Lookup 255
Type.FieldByName 254
Value.SetBool 254
Kind.String 243
Value.FieldByIndex 218
SliceOf 214
Value.MethodByName 212
PointerTo 179
Value.MapRange 163
MapIter.Next 159
Type.NumMethod 150
Value.Bytes 146
Value.Cap 143
StructField.IsExported 136
MapIter.Value 135
MapIter.Key 134
Value.Slice 134
Type.Len 114
Value.Complex 114
Type.Method 112
Type.Bits 100
Value.NumMethod 95
Type.IsVariadic 82
Value.SetLen 81
Copy 78
Value.UnsafeAddr 75
Value.UnsafePointer 75
Value.SetBytes 74
Value.SetZero 70