time.Time.Add
standard libraryThe 112th most-called standard-library method by production calls. Called 38,768 times across 863 modules; 9,024 of those run outside tests and generated code.
- prod calls
- 9,024
- non-test, non-generated
- all calls
- 38,768
- total callsites
- modules
- 863
- distinct callers
- in loop
- 15%
- of prod calls
- in tests
- 77%
- 29,725 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.3 ns/op × 9,024 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 Time.Add from notable Go projects. Open one on the map to see what else it hammers.
- Grafana 491 5%
- Kubernetes 443 5%
- HashiCorp 165 2%
- InfluxDB 154 2%
- Vault 154 2%
where it's called
Callsites in the wild
12 representative callsites of 38,768, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
caddyserver/certmagic @v0.25.4
in loop - in loop
- in loop
-
go/profiler @v0.6.0
proftest/proftest.go:371
in loop -
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
miekg/dns @v0.6.90
transfer.go:119
in loop - in loop
- in loop
- in loop
- in loop
-
entgo.io/ent @v0.14.6
dialect/gremlin/internal/ws/conn.go:188
in loop
top callers
The modules that reach for it
The modules that call Time.Add most in this snapshot.
- github.com/hashicorp/boundary1,9765%
- github.com/grafana/loki/v31,6734%
- github.com/kubernetes/kubernetes1,2383%
- go.temporal.io/server9783%
- k8s.io/kubernetes9262%
siblings
More from time
The other most-called members in this package. See all →