package
strings
standard library56 standard-library functions from strings, ranked by how often they are called outside tests and generated code.
- prod calls
- 375,873
- non-test, non-generated
- all calls
- 589,098
- total callsites
- functions
- 56
- ranked in this snapshot
- origin
- std
- standard-library
members
Functions in strings
Ranked by production calls. The bar scales each function against the busiest in this package.
| Function | Prod calls |
|---|---|
| Join | 85,439 |
| TrimSpace | 41,274 |
| Builder.WriteString | 32,940 |
| HasPrefix | 30,383 |
| Contains | 24,621 |
| ToLower | 20,277 |
| Split | 20,189 |
| Trim | 12,148 |
| Builder.String | 10,272 |
| HasSuffix | 9,952 |
| TrimPrefix | 9,143 |
| ReplaceAll | 7,668 |
| EqualFold | 6,055 |
| TrimSuffix | 5,999 |
| Replace | 5,616 |
| Index | 4,258 |
| SplitN | 4,087 |
| ToUpper | 3,926 |
| Builder.WriteByte | 3,765 |
| Cut | 3,562 |
| Repeat | 2,906 |
| NewReader | 2,751 |
| TrimRight | 2,492 |
| Fields | 2,475 |
| Builder.WriteRune | 1,912 |
| Builder.Grow | 1,880 |
| IndexByte | 1,749 |
| LastIndex | 1,703 |
| SplitSeq | 1,476 |
| CutPrefix | 1,445 |
| Compare | 1,337 |
| ContainsAny | 1,218 |
| Count | 1,143 |
| Replacer.Replace | 1,098 |
| TrimLeft | 1,050 |
| NewReplacer | 994 |
| Builder.Len | 931 |
| ContainsRune | 834 |
| Builder.Reset | 642 |
| LastIndexByte | 457 |
| Map | 443 |
| Title | 411 |
| Builder.Write | 366 |
| FieldsFunc | 350 |
| IndexRune | 329 |
| IndexAny | 300 |
| CutSuffix | 292 |
| IndexFunc | 218 |
| TrimLeftFunc | 208 |
| TrimRightFunc | 184 |
| Clone | 176 |
| SplitAfter | 119 |
| FieldsSeq | 112 |
| ContainsFunc | 104 |
| ToValidUTF8 | 101 |
| TrimFunc | 93 |