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
30,282
non-test, non-generated
all calls
51,990
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,457
Bool.Store 2,369
Int64.Load 2,049
Pointer.Load 1,800
Int64.Add 1,516
AddInt64 1,360
Value.Store 1,305
LoadInt64 1,290
Value.Load 1,283
AddUint64 1,161
Pointer.Store 1,147
Int64.Store 963
LoadUint64 915
LoadInt32 899
Uint64.Load 800
Int32.Load 784
Uint64.Add 705
Int32.Add 697
AddInt32 640
CompareAndSwapInt32 592
StoreInt32 560
LoadUint32 532
StoreInt64 478
StoreUint32 382
Bool.CompareAndSwap 381
AddUint32 343
Uint32.Load 333
StoreUint64 309
Int32.Store 300
Uint64.Store 249
LoadPointer 207
Uint32.Store 198
Bool.Swap 170
CompareAndSwapUint32 168
Uint32.Add 160
CompareAndSwapInt64 123
StorePointer 101
Pointer.Swap 100
CompareAndSwapUint64 88
Pointer.CompareAndSwap 83
Int64.CompareAndSwap 77
Int64.Swap 72
CompareAndSwapPointer 70
SwapInt64 66