Commit d95b46e
test: pin suffixes_prefixes_titles cache performance (#177)
* test: pin suffixes_prefixes_titles cache performance
This library is used to parse large batches of names, making the _pst
cache on suffixes_prefixes_titles load-bearing for throughput. Add a
timeit-based test that asserts 10 000 repeated calls complete in under
10 ms — well within what a single uncached union build would take — so
accidental cache removal surfaces immediately as a test failure.
* test: add identity assertion to cache performance test
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent caf42fa commit d95b46e
1 file changed
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
0 commit comments