Skip to content
callcount

package

sync/atomic

standard library

44 standard-library functions from sync/atomic, ranked by how often they are called outside tests and generated code.

Docs on pkg.go.dev ↗

prod calls
36,203
non-test, non-generated
all calls
72,834
total callsites
functions
44
ranked in this snapshot
origin
std
standard-library

members

Functions in sync/atomic

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

Function Prod calls
Bool.Load 3,463
Bool.Store 2,994
Int64.Load 2,732
Pointer.Load 2,388
Int64.Add 1,903
Pointer.Store 1,522
AddInt64 1,434
LoadInt64 1,409
Value.Store 1,355
Value.Load 1,341
Int64.Store 1,154
AddUint64 1,151
Uint64.Load 1,081
Uint64.Add 973
Int32.Load 961
LoadInt32 948
LoadUint64 934
Int32.Add 872
AddInt32 650
StoreInt32 619
CompareAndSwapInt32 608
LoadUint32 536
StoreInt64 532
Bool.CompareAndSwap 507
Uint32.Load 395
Int32.Store 387
StoreUint32 379
AddUint32 340
Uint64.Store 324
StoreUint64 313
Uint32.Store 232
Bool.Swap 225
LoadPointer 212
Uint32.Add 175
CompareAndSwapUint32 170
Pointer.CompareAndSwap 145
Pointer.Swap 139
CompareAndSwapInt64 132
Int64.CompareAndSwap 120
StorePointer 103
Int64.Swap 98
CompareAndSwapUint64 98
Int32.CompareAndSwap 78
CompareAndSwapPointer 71