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
32,739
non-test, non-generated
all calls
59,923
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 2,898
Bool.Store 2,700
Int64.Load 2,297
Pointer.Load 2,092
Int64.Add 1,617
AddInt64 1,381
LoadInt64 1,329
Value.Load 1,323
Value.Store 1,320
Pointer.Store 1,308
AddUint64 1,148
Int64.Store 1,066
Uint64.Load 921
LoadUint64 916
LoadInt32 900
Int32.Load 858
Uint64.Add 842
Int32.Add 762
AddInt32 645
CompareAndSwapInt32 595
StoreInt32 564
LoadUint32 535
StoreInt64 481
Bool.CompareAndSwap 440
StoreUint32 382
Int32.Store 348
Uint32.Load 347
AddUint32 344
StoreUint64 311
Uint64.Store 295
LoadPointer 205
Uint32.Store 193
Bool.Swap 191
CompareAndSwapUint32 169
Uint32.Add 167
Pointer.Swap 128
CompareAndSwapInt64 124
Pointer.CompareAndSwap 104
StorePointer 99
CompareAndSwapUint64 91
Int64.CompareAndSwap 88
Int64.Swap 78
CompareAndSwapPointer 70
SwapInt64 67