Bench the three-stack lalr1.cc.

* etc/bench.pl.in: Bench the three-stack lalr1.cc vs. the
	one-stack one.
This commit is contained in:
Akim Demaille
2008-08-25 16:31:23 +02:00
parent 414c76a461
commit 429b4848d4
2 changed files with 25 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2008-11-03 Akim Demaille <demaille@gostai.com>
Bench the three-stack lalr1.cc.
* etc/bench.pl.in: Bench the three-stack lalr1.cc vs. the
one-stack one.
2008-11-03 Akim Demaille <demaille@gostai.com> 2008-11-03 Akim Demaille <demaille@gostai.com>
Fail on parse error in calc++. Fail on parse error in calc++.

View File

@@ -749,6 +749,23 @@ sub bench_variant_parser ()
); );
} }
=item C<bench_fusion_parser ()>
Bench the C++ lalr1.cc parser using Boost.Variants or %union.
=cut
sub bench_fusion_parser ()
{
bench_grammar
('variant',
(
"split" => [],
"fused" => ['%skeleton "lalr1-fusion.cc"'],
)
);
}
############################################################################ ############################################################################
sub help ($) sub help ($)
@@ -782,7 +799,8 @@ verbose 1, "Using cc=$cc.\n";
verbose 1, "Using cxx=$cxx.\n"; verbose 1, "Using cxx=$cxx.\n";
verbose 1, "Using cflags=$cflags.\n"; verbose 1, "Using cflags=$cflags.\n";
# bench_push_parser(); # bench_push_parser();
bench_variant_parser(); # bench_variant_parser();
bench_fusion_parser();
### Setup "GNU" style for perl-mode and cperl-mode. ### Setup "GNU" style for perl-mode and cperl-mode.
## Local Variables: ## Local Variables: