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

Iterate ParseIter during Bench #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

attackgoat
Copy link
Contributor

PR #11 did not iterate through the parsed characters, which produced inaccurate bench results. This PR:

  • Fixes the iteration
  • Updates criterion
  • Fixes some clippy lints
  • Makes a few unwraps quicker (2-5% gain)

Updated results compared to pre-#11 run from a different machine:

  • Winner: Attackgoat: Before=1.3us After=455ns
  • Van Gogh my earlo...[~520 CHARS]: Before=35us After=16.7us

This is the perf graph for Winner: Attackgoat; blue is this PR and red is d47fc1e with f8918b7:
image

I noticed this discrepancy when performance profiling some other code. This library is still fast but I was expecting more from the previous PR.

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.

1 participant