lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


+++ Miles Bader [Sep 18 11 15:11 ]:
> Petite Abeille <petite.abeille@gmail.com> writes:
> >> If you have a chance, could you include in your benchmark David
> >> Parsons' Discount library?
> >
> > Never mind. It's there already :)
> >
> > 	• discount 0.14s
> > 	• lunamark 0.42s
> > 	• peg-markdown 0.50s
> > 	• pandoc 4.97s
> > 	• Markdown.pl (1.0.2b8) 56.75s
> > 	• markdown.lua 996.14s
> 
> One of the cool things about LPEG is that, after you get all excited
> by how easy it is to write parsers, you then discover that it's _also_
> gut-churningly fast... (and that's true even if you're doing tons of
> Lua callbacks, especially if you're using LuaJIT)

Yes, it's really amazing.  And I was just able to cut the benchmark down
to 0.35s by replacing some uses of string.gsub with lpeg.

John