Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LSP benchmark #9157

Merged
merged 1 commit into from
Nov 30, 2022
Merged

Add LSP benchmark #9157

merged 1 commit into from
Nov 30, 2022

Conversation

anthony-c-martin
Copy link
Member

@anthony-c-martin anthony-c-martin commented Nov 30, 2022

It felt like this would be useful to have for future perf investigations!

Some interesting initial data it turned up - creating built-in namespaces is responsible for 42% of time spent when upserting compilations, and serializing diagnostics to publish is responsible for an additional 37%!
image

Microsoft Reviewers: Open in CodeFlow

Copy link
Contributor

@jeskew jeskew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see in the graphic provided that IFeatureProvider (which is doing disk seeks) is also taking up a big chunk of time, and that makes it look like the language server is I/O bound. If we're using the JSON serializer in streaming mode, we might be able to speed things up by buffering responses before writing any data.

@anthony-c-martin anthony-c-martin merged commit 064cb8b into main Nov 30, 2022
@anthony-c-martin anthony-c-martin deleted the ant/lsp_benchmark branch November 30, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants