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,940
non-test, non-generated
all calls
215,766
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,751
Value.Elem 9,338
TypeOf 8,913
Value.Type 8,489
Value.Kind 7,622
Value.Set 7,564
Value.Interface 7,492
Type.Kind 6,247
Type.Elem 5,177
Value.Len 3,703
Value.IsNil 3,199
DeepEqual 3,098
Value.Index 2,568
Value.IsValid 2,447
New 2,161
Value.Field 2,008
Type.Field 1,914
Value.String 1,774
StructTag.Get 1,655
Value.FieldByName 1,614
Type.String 1,586
Value.Int 1,103
Type.NumField 1,067
Value.Uint 1,048
Type.Name 1,026
Indirect 1,019
Value.NumField 890
Value.Addr 881
Value.Float 812
Type.Implements 751
Value.CanSet 743
Zero 742
Value.Convert 711
Value.MapIndex 695
Value.Bool 587
Type.Key 523
Type.In 515
Value.MapKeys 500
MakeSlice 497
Value.Pointer 478
Value.SetInt 469
Type.NumIn 448
Value.CanAddr 433
Value.Call 424
Value.CanInterface 419
Value.SetUint 408
Value.SetMapIndex 405
Type.AssignableTo 371
Value.IsZero 365
Value.SetString 356
Append 335
Type.PkgPath 320
Type.NumOut 318
Type.Size 311
Type.Out 298
Type.ConvertibleTo 293
Value.SetFloat 267
PtrTo 262
MakeMap 257
StructTag.Lookup 256
Type.FieldByName 254
Value.SetBool 254
Kind.String 243
Value.FieldByIndex 218
SliceOf 216
PointerTo 213
Value.MethodByName 212
Value.MapRange 165
MapIter.Next 163
Type.NumMethod 153
Value.Bytes 146
Value.Cap 145
StructField.IsExported 137
MapIter.Value 137
MapIter.Key 136
Value.Slice 136
Type.Len 118
Value.Complex 116
Type.Method 113
Type.Bits 100
Value.NumMethod 93
Value.UnsafePointer 82
Type.IsVariadic 82
Value.SetLen 81
Copy 80
Value.UnsafeAddr 75
Value.SetZero 75
Value.SetBytes 74