sync.Pool.Put
standard libraryThe 371st most-called standard-library method by production calls. Called 5,771 times across 362 modules; 2,351 of those run outside tests and generated code.
- prod calls
- 2,351
- non-test, non-generated
- all calls
- 5,771
- total callsites
- modules
- 362
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- <1%
- 56 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Concrete method100%A method on a value whose type is known exactly.
- Embedded method<1%Reached through an embedded type.
estimate
Estimated relative cost
Roughly 0.00× the estimated relative cost of fmt.Sprintf . Benchmarked at 3.96 ns/op × 2,351 production calls, normalized so fmt.Sprintf = 1.0.
This is not dollars and not a verdict. Per-op time depends heavily on inputs (argument sizes, contention, patterns), the benchmark ran on a single machine (darwin/arm64 (Apple Silicon), go1.26.0), and static call counts are not runtime frequency. How this is estimated →
who calls this
Notable callers
Production calls into Pool.Put from notable Go projects. Open one on the map to see what else it hammers.
- VictoriaMetrics 282 12%
- Grafana 162 7%
- CockroachDB 92 4%
- containerd 57 2%
- Kubernetes 40 2%
where it's called
Callsites in the wild
12 representative callsites of 5,771, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
go.etcd.io/bbolt @v1.5.0
tx.go:588
in loop -
IBM/sarama @v1.60.1
in loop - in loop
-
XTLS/Xray-core @v1.260327.0
in loop -
astaxie/beego @v1.12.3
in loop -
beego/beego @v1.12.14
in loop -
beego/beego/v2 @v2.3.10
in loop -
boltdb/bolt @v1.3.1
in loop
top callers
The modules that reach for it
The modules that call Pool.Put most in this snapshot.
- go.opentelemetry.io/otel3,34358%
- github.com/VictoriaMetrics/VictoriaLogs1533%
- github.com/VictoriaMetrics/VictoriaMetrics1242%
- github.com/klauspost/compress892%
- github.com/grafana/loki/v3761%
siblings
More from sync
The other most-called members in this package. See all →