regexp.Regexp.FindString
standard libraryThe 1698th most-called standard-library method by production calls. Called 407 times across 183 modules; 362 of those run outside tests and generated code.
- prod calls
- 362
- non-test, non-generated
- all calls
- 407
- total callsites
- modules
- 183
- distinct callers
- in loop
- 26%
- of prod calls
- in tests
- 11%
- 45 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 →
- Concrete method100%A method on a value whose type is known exactly.
estimate
Estimated relative cost
Roughly 0.00× the estimated relative cost of fmt.Sprintf . Benchmarked at 149.6 ns/op × 362 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 Regexp.FindString from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 31 9%
- Docker 10 3%
- Prometheus 6 2%
- Grafana 4 1%
- InfluxDB 4 1%
where it's called
Callsites in the wild
12 representative callsites of 407, prioritizing in-loop and non-test usage. We link to source, never display it.
-
docker/distribution @v2.8.3+incompatible
in loop - in loop
- in loop
- in loop
-
XTLS/Xray-core @v1.260327.0
in loop - in loop
-
astaxie/beego @v1.12.3
in loop -
beego/beego @v1.12.14
in loop -
beego/beego/v2 @v2.3.10
in loop - in loop
-
dinedal/textql @v0.0.0-20231022225140-e6545d501ca9
in loop -
distribution/distribution @v2.8.3+incompatible
in loop
top callers
The modules that reach for it
The modules that call Regexp.FindString most in this snapshot.
- github.com/fish2018/pansou297%
- github.com/bytebase/bytebase123%
- github.com/gitleaks/gitleaks102%
- github.com/go-playground/locales92%
- github.com/kubernetes/kubernetes82%
siblings
More from regexp
The other most-called members in this package. See all →