math/big.Int.Cmp
standard libraryThe 1030th most-called standard-library method by production calls. Called 1,212 times across 104 modules; 634 of those run outside tests and generated code.
- prod calls
- 634
- non-test, non-generated
- all calls
- 1,212
- total callsites
- modules
- 104
- distinct callers
- in loop
- 18%
- of prod calls
- in tests
- 48%
- 578 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 20 3%
- Tailscale 16 3%
- Vault 14 2%
- SPIFFE 10 2%
where it's called
Callsites in the wild
12 representative callsites of 1,212, prioritizing in-loop and non-test usage. We link to source, never display it.
-
go/storage @v1.64.0
dataflux/range_splitter.go:319
in loop -
GoogleContainerTools/skaffold/v2 @v2.24.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-20260723142020-b4aef50fa347
in loop -
drand/kyber @v1.3.2
in loop -
ethereum/go-ethereum @v1.17.5
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-ethereum21718%
- github.com/cloudflare/circl18916%
- github.com/cznic/mathutil867%
- github.com/zmap/zcrypto756%
- golang.org/x/crypto605%
siblings
More from math/big
The other most-called members in this package. See all →