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

Benchmarks #3

Open
LukeDefeo opened this issue Aug 16, 2023 · 1 comment
Open

Benchmarks #3

LukeDefeo opened this issue Aug 16, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@LukeDefeo
Copy link

Hello nice library, i think i prefer the aesthetics to ts-pattern. I noticed that ts-pattern was benchmarked to have a pretty huge overhead, between 10x to 1000x. gvergnaud/ts-pattern#173

Have you don't any benchmarks on match-iz for a comparison?

Thanks for the library

@shuckster
Copy link
Owner

shuckster commented Aug 17, 2023

Hey, thanks for checking out the library. I don't have any comparison benchmarks, but I could potentially look into the ones you linked and adapt them.

It's going to be a busy month for me, so I would welcome any assistance. Otherwise, I should have time to look into this in September.

With any tool like this there is a runtime cost, but if it's any indicator of performance, I've written an eslint plug-in using match-iz to help with AST parsing, and another library "viddy" uses it heavily.

There's a big difference in performance demand between these two though.

@shuckster shuckster added the documentation Improvements or additions to documentation label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants