math.Sqrt
standard libraryThe 804th most-called standard-library function by production calls. Called 1,075 times across 149 modules; 848 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (837 → 848)
- prod calls
- 848
- non-test, non-generated
- all calls
- 1,075
- total callsites
- modules
- 149
- distinct callers
- in loop
- 18%
- of prod calls
- in tests
- 21%
- 227 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 1.98 ns/op × 848 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 Sqrt from notable Go projects. Open one on the map to see what else it hammers.
- VictoriaMetrics 20 2%
- Grafana 14 2%
- InfluxDB 12 1%
- Kubernetes 12 1%
- CockroachDB 8 <1%
where it's called
Callsites in the wild
12 representative callsites of 1,075, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
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 -
casdoor/casdoor @v1.1000.0
in loop -
esimov/caire @v1.5.0
in loop -
fogleman/primitive @v0.0.0-20200504002142-0373c216458b
in loop - in loop
- in loop
top callers
The modules that reach for it
The modules that call Sqrt most in this snapshot.
- gonum.org/v1/gonum39236%
- github.com/terrastruct/d2636%
- github.com/weaviate/weaviate444%
- github.com/ollama/ollama394%
- github.com/xuri/excelize/v2394%
siblings
More from math
The other most-called functions in this package. See all →