diff options
author | Akim Demaille <demaille@gostai.com> | 2008-08-25 16:31:23 +0200 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2008-11-03 22:01:06 +0100 |
commit | 429b4848d42f0a70b568e7927261a065d4134535 (patch) | |
tree | 35d042e0dbb4538dcf9073f84fb8be7affd40584 /etc | |
parent | 414c76a461489167b0ba3f699f1d996a499efb8c (diff) | |
download | bison-429b4848d42f0a70b568e7927261a065d4134535.tar.gz |
Bench the three-stack lalr1.cc.
* etc/bench.pl.in: Bench the three-stack lalr1.cc vs. the
one-stack one.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/bench.pl.in | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/etc/bench.pl.in b/etc/bench.pl.in index eadfa4b3..ae50516f 100755 --- a/etc/bench.pl.in +++ b/etc/bench.pl.in @@ -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 ($) @@ -782,7 +799,8 @@ verbose 1, "Using cc=$cc.\n"; verbose 1, "Using cxx=$cxx.\n"; verbose 1, "Using cflags=$cflags.\n"; # bench_push_parser(); -bench_variant_parser(); +# bench_variant_parser(); +bench_fusion_parser(); ### Setup "GNU" style for perl-mode and cperl-mode. ## Local Variables: |