net/url.Values.Encode
standard libraryThe 231st most-called standard-library method by production calls. Called 7,673 times across 479 modules; 4,190 of those run outside tests and generated code.
- prod calls
- 4,190
- non-test, non-generated
- all calls
- 7,673
- total callsites
- modules
- 479
- distinct callers
- in loop
- 2%
- of prod calls
- in tests
- 16%
- 1,218 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.05× the estimated relative cost of fmt.Sprintf . Benchmarked at 278.1 ns/op × 4,190 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 Values.Encode from notable Go projects. Open one on the map to see what else it hammers.
- VictoriaMetrics 73 2%
- Grafana 50 1%
- HashiCorp 33 <1%
- InfluxDB 32 <1%
- Kubernetes 31 <1%
where it's called
Callsites in the wild
12 representative callsites of 7,673, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
-
AlexxIT/go2rtc @v1.9.14
in loop -
DNSCrypt/dnscrypt-proxy @v0.0.0-20260801091651-c3ba78fac8a3
in loop -
IBM/keyprotect-go-client @v0.17.3
in loop -
NoFxAiOS/nofx @v0.0.0-20260730005637-d3de5e82aa02
in loop - in loop
- in loop
- in loop
-
casdoor/go-sms-sender @v0.25.0
in loop
top callers
The modules that reach for it
The modules that call Values.Encode most in this snapshot.
- github.com/elastic/go-elasticsearch/v81,12015%
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/v772910%
- github.com/elastic/go-elasticsearch/v74075%
- github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v73144%
- github.com/elastic/go-elasticsearch/v62563%
siblings
More from net/url
The other most-called members in this package. See all →