math.Log2
standard libraryThe 5376th most-called standard-library function by production calls. Called 138 times across 67 modules; 111 of those run outside tests and generated code.
No change in production calls since 2026-W37.
- prod calls
- 111
- non-test, non-generated
- all calls
- 138
- total callsites
- modules
- 67
- distinct callers
- in loop
- 14%
- of prod calls
- in tests
- 17%
- 24 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 →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into Log2 from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 10 9%
- Prometheus 9 8%
- Grafana 7 6%
- TiDB 5 5%
- Cilium 3 3%
where it's called
Callsites in the wild
12 representative callsites of 138, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
gitleaks/gitleaks @v1.25.1
in loop - in loop
-
google/pprof @v0.0.0-20260906184651-6331bc6350fe
in loop -
klauspost/compress @v1.20.0
in loop -
sjwhitworth/golearn @v0.0.0-20221228163002-74ae077eafb2
in loop - in loop
- in loop
- in loop
- in loop
-
klauspost/compress @v1.20.0
in loop
top callers
The modules that reach for it
The modules that call Log2 most in this snapshot.
- github.com/cloudflare/circl97%
- github.com/prometheus/prometheus75%
- github.com/kubernetes/kubernetes64%
- github.com/andybalholm/brotli54%
- github.com/pingcap/tidb54%
siblings
More from math
The other most-called functions in this package. See all →