]> git.saurik.com Git - bison.git/commitdiff
Bench the three-stack lalr1.cc.
authorAkim Demaille <demaille@gostai.com>
Mon, 25 Aug 2008 14:31:23 +0000 (16:31 +0200)
committerAkim Demaille <demaille@gostai.com>
Mon, 3 Nov 2008 21:01:06 +0000 (22:01 +0100)
* etc/bench.pl.in: Bench the three-stack lalr1.cc vs. the
one-stack one.

ChangeLog
etc/bench.pl.in

index c8bb301693b0357d2f688dabee8aa2b7ebdc42f6..173d2e189eb32c0da7fc814cb99d3d97754d8154 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        Fail on parse error in calc++.
index eadfa4b32894195e287f966c6e64c10722f213d4..ae50516fe6931e9de593da526f79dd5741b78a93 100755 (executable)
@@ -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: