math/big.Int.Cmp
standard libraryThe 1060th most-called standard-library method by production calls. Called 1,223 times across 105 modules; 639 of those run outside tests and generated code.
1% in production calls vs 2026-W39 (630 → 639)
- prod calls
- 639
- non-test, non-generated
- all calls
- 1,223
- total callsites
- modules
- 105
- distinct callers
- in loop
- 17%
- of prod calls
- in tests
- 48%
- 584 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.
who calls this
Notable callers
Production calls into Int.Cmp from notable Go projects. Open one on the map to see what else it hammers.
- Go (golang.org/x) 44 7%
- Kubernetes 19 3%
- Tailscale 16 3%
- Vault 14 2%
- SPIFFE 10 2%
where it's called
Callsites in the wild
12 representative callsites of 1,223, prioritizing in-loop and non-test usage. We link to source, never display it.
-
go/storage @v1.68.0
dataflux/range_splitter.go:319
in loop -
GoogleContainerTools/skaffold/v2 @v2.25.0
fs/assets/credits_generated/github.com/letsencrypt/boulder/goodkey/good_key.go:411 ↗
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
cznic/mathutil @v0.0.0-20181122101859-297441e03548
in loop -
dop251/goja @v0.0.0-20260926152631-39ec2650adc9
in loop -
drand/kyber @v1.3.2
in loop -
ethereum/go-ethereum @v1.17.6
in loop - in loop
top callers
The modules that reach for it
The modules that call Int.Cmp most in this snapshot.
- github.com/ethereum/go-ethereum21818%
- github.com/cloudflare/circl19716%
- github.com/cznic/mathutil867%
- github.com/zmap/zcrypto756%
- golang.org/x/crypto615%
siblings
More from math/big
The other most-called members in this package. See all →