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

Optimize the non-streaming XML parser #84

Merged
merged 2 commits into from
Jun 5, 2021
Merged

Conversation

qcam
Copy link
Owner

@qcam qcam commented Jan 3, 2021

##### With input samples/hackernoon.xml #####
Name           ips        average  deviation         median         99th %
New         270.06        3.70 ms    ±37.15%        3.35 ms        8.60 ms
Old         204.78        4.88 ms    ±17.15%        4.67 ms        8.27 ms

Comparison:
New         270.06
Old         204.78 - 1.32x slower +1.18 ms

##### With input samples/reddit.xml #####
Name           ips        average  deviation         median         99th %
New         423.92        2.36 ms    ±18.53%        2.25 ms        3.94 ms
Old         387.29        2.58 ms    ±16.31%        2.47 ms        4.02 ms

Comparison:
New         423.92
Old         387.29 - 1.09x slower +0.22 ms

##### With input samples/soccer.xml #####
Name           ips        average  deviation         median         99th %
New          13.35       74.88 ms     ±9.83%       72.52 ms      110.51 ms
Old          10.77       92.82 ms     ±8.44%       91.53 ms      137.02 ms

Comparison:
New          13.35
Old          10.77 - 1.24x slower +17.94 ms

@qcam qcam force-pushed the cam/simplify-options branch 3 times, most recently from 139337a to ca9fe77 Compare January 4, 2021 20:41
@qcam qcam marked this pull request as ready for review June 5, 2021 06:35
@qcam qcam merged commit 3722a24 into develop Jun 5, 2021
@qcam qcam deleted the cam/simplify-options branch June 5, 2021 06:42
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