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

[perf] benchmark and profiling ast-grep core matching logic #144

Open
HerringtonDarkholme opened this issue Dec 21, 2022 · 1 comment
Open
Labels
perf Performance Improvement

Comments

@HerringtonDarkholme
Copy link
Member

https://medium.com/source-and-buggy/data-driven-performance-optimization-with-rust-and-miri-70cb6dde0d35

@0xdevalias
Copy link

The tl;dr of that blog seemed to be that they first used flamegraph, which was mildly useful, but not specifically detailed enough:

And then moved on to using miri and a less-obvious feature of it to generate a far more detailed trace, that could then be analysed within Google Chrome's DevTools performance tab:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf Performance Improvement
Projects
Status: In Progress
Development

No branches or pull requests

2 participants