bytes.Equal
standard libraryThe 242nd most-called standard-library function by production calls. Called 13,993 times across 769 modules; 4,084 of those run outside tests and generated code.
- prod calls
- 4,084
- non-test, non-generated
- all calls
- 13,993
- total callsites
- modules
- 769
- distinct callers
- in loop
- 33%
- of prod calls
- in tests
- 59%
- 8,290 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,084 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 5%
- CockroachDB 147 4%
- Grafana 86 2%
- InfluxDB 84 2%
- Istio 70 2%
where it's called
Callsites in the wild
12 representative callsites of 13,993, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
caddyserver/certmagic @v0.25.4
in loop -
cilium/proxy @v0.0.0-20260721220516-ab0596f228a0
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
-
etcd/client/v3 @v3.7.1
namespace/lease.go:47
in loop -
filippo.io/age @v1.3.1
internal/format/format.go:255
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/compress2672%
- github.com/hyperledger/fabric2432%
siblings
More from bytes
The other most-called functions in this package. See all →