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

Comparison to xmldom #134

Closed
physikerwelt opened this issue Jan 11, 2019 · 1 comment
Closed

Comparison to xmldom #134

physikerwelt opened this issue Jan 11, 2019 · 1 comment

Comments

@physikerwelt
Copy link

How does the performance of reading XML files compares to xmldom? Was this investigated?

@amitguptagwl
Copy link
Member

xmldom is a dead project I guess. Because there is no update from last 2 years. So many PRs and issues are still open.

This is the benchmarking result for just parsing; Please note that performance of fxp will be higher when you'll not convert the XML to JS object but an intermediate object (XMLnode). However, converting to JS object give you the benefit of easy manipulation.

fxp : 87710.72546590598 requests/second
xmldom : 77285.7702536101 requests/second

I'll say that you should not compare both packages if you want to use DOM style manipulation.

doc3.documentElement.appendChild(doc3.documentElement.lastChild);

But if you're fine to manipulate js objects directly then you don't need to compare them.

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

No branches or pull requests

2 participants