| Operation | Time | Notes |
|---|---|---|
| Access s[i] | O(1) | |
| Slice s[i:j] | O(j-i) | Creates new string |
| Concatenation + | O(n+m) | Creates new string |
| join() | O(n) | Total length of strings |
| find/index | O(n*m) | n=text, m=pattern |
| in operator | O(n*m) | Same as find |
| split() | O(n) | |
| replace() | O(n) | Creates new string |