Skip to content
callcount

package

sync

standard library

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

Docs on pkg.go.dev ↗

prod calls
219,267
non-test, non-generated
all calls
323,403
total callsites
functions
29
ranked in this snapshot
origin
std
standard-library

members

Functions in sync

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

Function Prod calls
Mutex.Unlock 53,066
Mutex.Lock 49,443
RWMutex.Unlock 22,718
RWMutex.Lock 21,057
RWMutex.RUnlock 18,669
RWMutex.RLock 17,535
WaitGroup.Done 6,161
WaitGroup.Wait 5,810
WaitGroup.Add 5,733
Once.Do 4,963
Pool.Put 2,421
Pool.Get 2,221
Map.Load 1,501
Map.Store 1,300
WaitGroup.Go 1,072
Map.Delete 746
Map.Range 716
Cond.Broadcast 692
Locker.Unlock 528
Map.LoadOrStore 507
Cond.Wait 498
Locker.Lock 484
OnceValue 385
NewCond 332
Cond.Signal 268
Map.LoadAndDelete 131
OnceFunc 109
OnceValues 108
Mutex.TryLock 93