bytes.Equal
standard libraryThe 229th most-called standard-library function by production calls. Called 14,975 times across 778 modules; 4,283 of those run outside tests and generated code.
3% in production calls vs 2026-W37 (4,175 → 4,283)
- prod calls
- 4,283
- non-test, non-generated
- all calls
- 14,975
- total callsites
- modules
- 778
- distinct callers
- in loop
- 31%
- of prod calls
- in tests
- 61%
- 9,072 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 →
- Package function100%A direct call to an exported package function, resolved by type.
estimate
Estimated relative cost
Roughly 0.00× the estimated relative cost of fmt.Sprintf . Benchmarked at 2.09 ns/op × 4,283 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 Equal from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 185 4%
- CockroachDB 147 3%
- Grafana 86 2%
- InfluxDB 84 2%
- Cilium 71 2%
where it's called
Callsites in the wild
12 representative callsites of 14,975, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
go/protovalidate @v1.4.0
native_repeated.go:252
in loop -
caddyserver/certmagic @v0.25.4
in loop -
charm.land/fantasy @v0.44.0
providers/openaicompat/provider_options.go:70
in loop -
cilium/proxy @v0.0.0-20260921120314-283c3f1fedbb
in loop - in loop
- in loop
-
hashicorp/consul @v1.22.7
in loop - in loop
-
dgraph-io/badger @v1.6.2
in loop - in loop
top callers
The modules that reach for it
The modules that call Equal most in this snapshot.
- github.com/gogo/protobuf1,2979%
- github.com/ethereum/go-ethereum5804%
- github.com/cockroachdb/cockroach4673%
- github.com/klauspost/compress3052%
- github.com/terrastruct/d22632%
siblings
More from bytes
The other most-called functions in this package. See all →