On Tue, Feb 02, 2010 at 10:28:49AM -0600, Greg London wrote:

> When you run the script, the output looks something like this:
> 
> benchmarking for 30 seconds...
>                         Rate
> parse_recdescent_many   19/s
> parse_gnaw_many         64/s
> parse_recdescent_few   270/s
> parse_gnaw_few         523/s
> parse_recdescent_1     819/s
> parse_gnaw_1          1127/s
> 
> There's more text on each line showing percentages, but the Rate is all I
> really care about.
> 
> If I'm reading it right, and I'm not sure I am, then the script says that
> Parse::Gnaw runs about three times faster than Parse::RecDescent (64 calls
> per second versus 19 calls per second). That is really surprising to me.

You are reading it right.  Rate is executions per second.  The
documentation for Parse::RecDescent mentions, under Bugs and Irritations,
"The generated parsers don't always run as fast as might be wished."

Ronald

_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to