package
sync
standard library29 standard-library functions from sync, ranked by how often they are called outside tests and generated code.
- prod calls
- 229,979
- non-test, non-generated
- all calls
- 347,274
- 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 | 56,909 |
| Mutex.Lock | 52,807 |
| RWMutex.Unlock | 23,210 |
| RWMutex.Lock | 21,485 |
| RWMutex.RUnlock | 19,172 |
| RWMutex.RLock | 18,015 |
| WaitGroup.Done | 6,153 |
| WaitGroup.Wait | 6,004 |
| WaitGroup.Add | 5,713 |
| Once.Do | 5,281 |
| Pool.Put | 2,492 |
| Pool.Get | 2,276 |
| Map.Load | 1,598 |
| Map.Store | 1,353 |
| WaitGroup.Go | 1,343 |
| Map.Delete | 793 |
| Map.Range | 726 |
| Cond.Broadcast | 712 |
| Map.LoadOrStore | 595 |
| Locker.Unlock | 536 |
| Cond.Wait | 513 |
| Locker.Lock | 491 |
| OnceValue | 471 |
| OnceFunc | 349 |
| NewCond | 339 |
| Cond.Signal | 279 |
| OnceValues | 129 |
| Map.LoadAndDelete | 127 |
| Mutex.TryLock | 108 |