sort.Sort
standard libraryThe 333rd most-called standard-library function by production calls. Called 3,693 times across 498 modules; 2,636 of those run outside tests and generated code.
- prod calls
- 2,636
- non-test, non-generated
- all calls
- 3,693
- total callsites
- modules
- 498
- distinct callers
- in loop
- 10%
- of prod calls
- in tests
- 28%
- 1,050 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.01× the estimated relative cost of fmt.Sprintf . Benchmarked at 114.3 ns/op × 2,636 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 Sort from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 312 12%
- Grafana 140 5%
- InfluxDB 114 4%
- CockroachDB 78 3%
- Go (golang.org/x) 70 3%
where it's called
Callsites in the wild
12 representative callsites of 3,693, 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
- in loop
-
encr.dev @v1.57.13
pkg/errinsrc/internal/location.go:162
in loop - in loop
-
cli/cli @v1.14.0
in loop -
CodisLabs/codis @v0.0.0-20181104082235-de1ad026e329
in loop -
IBM/sarama @v1.60.1
in loop - in loop
- in loop
top callers
The modules that reach for it
The modules that call Sort most in this snapshot.
- github.com/kubernetes/kubernetes2507%
- k8s.io/kubernetes1805%
- github.com/influxdata/influxdb1374%
- github.com/cockroachdb/cockroach983%
- github.com/aquasecurity/trivy973%
siblings
More from sort
The other most-called functions in this package. See all →