picoe / Eto.Parse

Recursive descent LL(k) parser for .NET with Fluent API, BNF, EBNF and Gold Grammars
MIT License
148 stars 30 forks source link

Added NFX.JSON and SpracheJSON to the speed test #34

Closed yallie closed 7 years ago

yallie commented 7 years ago

Eto.Parse looks like the fastest parser framework indeed! At least, based on JSON parsing example. Thanks for the great parsing framework.

Actually, I'm very disappointed by both JSON parsers I've added to the benchmark:

Test Parsing Slower than best Warmup Slower than best
Eto.Parse 2,327s 1,00x 0,008s 1,00x
Newtonsoft Json 2,523s 1,08x 0,068s 8,08x
ServiceStack.Text 2,854s 1,23x 0,066s 7,78x
Irony 25,401s 10,92x 0,188s 22,28x
bsn.GoldParser 11,186s 4,81x 0,013s 1,49x
NFX.JSON 11,847s 5,09x 0,187s 22,10x
SpracheJSON 92,774s 39,88x 0,189s 22,37x
cwensley commented 7 years ago

Excellent, thanks for adding the additional tests! Interesting to see how slow some of them really are.