-
Notifications
You must be signed in to change notification settings - Fork 219
Description
In astral-sh/ruff#22630, I added a small ad hoc CLI tool for ad hoc benchmarking/profiling of completions. But ideally, we'd have some benchmarks for completions in our LSP benchmarks too. A good start would be to add them to ty_walltime. Currently, I think all of the benchmarks in ty_walltime are just running type checking:
So we'll want to add a new kind of benchmark that, instead of running type checking, it asks for completions instead.
For completions, the uncached and cached cases can be markedly different. Ideally we could benchmark both. But at minimum, we should be clear about which case is being tested (perhaps in the name of the benchmark).
(It may also be a good idea to add completion benchmarks to scripts/ty_benchmark, but I think that's a separate task.)