bytes.Compare
standard libraryThe 676th most-called standard-library function by production calls. Called 2,257 times across 213 modules; 1,036 of those run outside tests and generated code.
- prod calls
- 1,036
- non-test, non-generated
- all calls
- 2,257
- total callsites
- modules
- 213
- distinct callers
- in loop
- 34%
- of prod calls
- in tests
- 36%
- 809 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.
who calls this
Notable callers
Production calls into Compare from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 129 12%
- Grafana 71 7%
- InfluxDB 65 6%
- TiDB 41 4%
- Dgraph 40 4%
where it's called
Callsites in the wild
12 representative callsites of 2,257, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cilium/statedb @v0.8.3
in loop - in loop
- in loop
- in loop
-
ardanlabs/gotraining @v0.0.0-20260512011504-4ae5a46bfc66
in loop - in loop
-
blevesearch/zap/v11 @v11.0.14
in loop -
blevesearch/zap/v12 @v12.0.14
in loop -
blevesearch/zap/v13 @v13.0.6
in loop -
blevesearch/zap/v14 @v14.0.5
in loop -
blevesearch/zap/v15 @v15.0.3
in loop - in loop
top callers
The modules that reach for it
The modules that call Compare most in this snapshot.
- github.com/gogo/protobuf41819%
- github.com/ethereum/go-ethereum1567%
- github.com/cockroachdb/cockroach1557%
- github.com/spdx/tools-golang924%
- github.com/influxdata/influxdb683%
siblings
More from bytes
The other most-called functions in this package. See all →