mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
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:
@@ -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++.
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user