rust-lang / rls

Repository for the Rust Language Server (aka RLS)
Other
3.51k stars 257 forks source link

performance measurement #221

Open nrc opened 7 years ago

nrc commented 7 years ago

If we don't test it, we won't maintain it.

We should have easy (like 'run this script') ways to measure and record performance of key measures. We probably shouldn't worry about infra for this to start with, just need a way to do it, and for us to keep an eye on it to start with.

We should measure end to end time (i.e., from receiving a request to issuing a response) and some more precise measurements (there is already some of the latter in rls-analysis, but it is very ad hoc). We should include compiler and cargo time where appropriate, but we should exclude VSCode (or other IDE) and protocol time.

I suggest we measure the following for small (e.g., hello world), medium (e.g., the RLS), and large projects (e.g., Servo). (We should take snapshots of the projects rather than updating them from crates.io or whatever).

Maybe some other core stuff? I don't think we should test everything - this should be easy to maintain, update, and run.

nrc commented 6 years ago

cc @Xanewok - another important testing thing

Xanewok commented 5 years ago

Fat fingered while I toyed with milestone UI, don't worry about it :sweat_smile:

jens1o commented 5 years ago

@Xanewok Would still be cool if this is being picked up.

Xanewok commented 5 years ago

Yeah, benchmarking's is what we still need to do and what's on the roadmap.