time.Time.Compare
standard libraryThe 4530th most-called standard-library method by production calls. Called 164 times across 50 modules; 132 of those run outside tests and generated code.
5% in production calls vs 2026-W37 (139 → 132)
- prod calls
- 132
- non-test, non-generated
- all calls
- 164
- total callsites
- modules
- 50
- distinct callers
- in loop
- 14%
- of prod calls
- in tests
- 7%
- 12 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 method99%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 Time.Compare from notable Go projects. Open one on the map to see what else it hammers.
- Istio 15 11%
- Grafana 14 11%
- Docker 12 9%
- HashiCorp 5 4%
- Kubernetes 4 3%
where it's called
Callsites in the wild
12 representative callsites of 164, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
moby/buildkit @v0.33.0
in loop -
encr.dev @v1.58.6
cli/cmd/encore/secrets/list.go:100
in loop - in loop
- in loop
- in loop
- in loop
- in loop
-
go/mautrix @v0.31.0
bridgev2/portal.go:3548
in loop - in loop
-
tailscale.com @v1.102.4
cmd/testwrapper/testwrapper.go:386
in loop - in loop
top callers
The modules that reach for it
The modules that call Time.Compare most in this snapshot.
- github.com/hashicorp/boundary/api2113%
- github.com/grafana/loki/v3127%
- github.com/moby/buildkit127%
- istio.io/istio106%
- github.com/anacrolix/torrent85%
siblings
More from time
The other most-called members in this package. See all →