You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was curious to see how Sigma would stack up against other parsers - the biggest benchmark I know is Chevrotain's, so I added Sigma's JSON parser example to it:
although it is 4 times slower than Chevrotain, Sigma is definitely in the lead 🙂
Chevrotain is the fastest JS parser library I know of, so it would probably be difficult to beat.
and of course, this is without making any attempts to optimize Sigma's implementation of the JSON parser at all.
I did a quick profile, and sequence looks like the biggest bottleneck at the moment:
it might be worth optimizing and benchmarking further - Chevrotain might be worth referencing for optimizations as well, I know the author put a lot of work into that.
as previously mentioned, performance is not the main reason I picked this library - but I do think it's important, and if there are any "easy wins", it might be worth while investigating this a bit further.
I might take a closer look at some point - just leaving this here for now. 🙂
The text was updated successfully, but these errors were encountered:
I was curious to see how Sigma would stack up against other parsers - the biggest benchmark I know is Chevrotain's, so I added Sigma's JSON parser example to it:
mindplay-dk/chevrotain@d8fd236
although it is 4 times slower than Chevrotain, Sigma is definitely in the lead 🙂
Chevrotain is the fastest JS parser library I know of, so it would probably be difficult to beat.
and of course, this is without making any attempts to optimize Sigma's implementation of the JSON parser at all.
I did a quick profile, and
sequence
looks like the biggest bottleneck at the moment:it might be worth optimizing and benchmarking further - Chevrotain might be worth referencing for optimizations as well, I know the author put a lot of work into that.
as previously mentioned, performance is not the main reason I picked this library - but I do think it's important, and if there are any "easy wins", it might be worth while investigating this a bit further.
I might take a closer look at some point - just leaving this here for now. 🙂
The text was updated successfully, but these errors were encountered: