package
sync
standard library29 standard-library functions from sync, ranked by how often they are called outside tests and generated code.
- prod calls
- 217,981
- non-test, non-generated
- all calls
- 321,290
- 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 | 52,549 |
| Mutex.Lock | 49,030 |
| RWMutex.Unlock | 22,651 |
| RWMutex.Lock | 20,990 |
| RWMutex.RUnlock | 18,627 |
| RWMutex.RLock | 17,499 |
| WaitGroup.Done | 6,158 |
| WaitGroup.Wait | 5,801 |
| WaitGroup.Add | 5,728 |
| Once.Do | 4,932 |
| Pool.Put | 2,415 |
| Pool.Get | 2,215 |
| Map.Load | 1,474 |
| Map.Store | 1,278 |
| WaitGroup.Go | 1,070 |
| Map.Delete | 740 |
| Map.Range | 708 |
| Cond.Broadcast | 689 |
| Locker.Unlock | 528 |
| Map.LoadOrStore | 504 |
| Cond.Wait | 496 |
| Locker.Lock | 484 |
| OnceValue | 380 |
| NewCond | 331 |
| Cond.Signal | 268 |
| Map.LoadAndDelete | 130 |
| OnceFunc | 108 |
| OnceValues | 106 |
| Mutex.TryLock | 92 |