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

[zero-copy] Add nom benchmark #94

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

wackbyte
Copy link
Contributor

Adds a benchmark for nom based on the example linked in #89.

@wackbyte
Copy link
Contributor Author

(here are the results I got on my Ryzen 5 3600X)
image

@zesterer
Copy link
Owner

Holy heck! chumsky/zero-copy zero is faster than nom, even without an explicit escaped primitive?! That I did not expect in the slightest. Obviously that's going to take a bit of a beating when proper error reporting is implemented (although the error handling the branch has right now is still roughly equivalent to nom's), but hopefully most of the performance wins can be preserved.

@zesterer zesterer merged commit 1ab8b05 into zesterer:zero-copy Feb 28, 2022
@zesterer
Copy link
Owner

As a confirmation, I'm seeing similar numbers locally.

image

@wackbyte wackbyte deleted the zero-copy-add-nom-bench branch March 13, 2022 17:32
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.

2 participants