summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorAkim Demaille <demaille@gostai.com>2008-08-25 16:31:23 +0200
committerAkim Demaille <demaille@gostai.com>2008-11-03 22:01:06 +0100
commit429b4848d42f0a70b568e7927261a065d4134535 (patch)
tree35d042e0dbb4538dcf9073f84fb8be7affd40584 /etc
parent414c76a461489167b0ba3f699f1d996a499efb8c (diff)
downloadbison-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-xetc/bench.pl.in20
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: