bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Bench the three-stack lalr1.cc.


From: Akim Demaille
Subject: [PATCH] Bench the three-stack lalr1.cc.
Date: Mon, 03 Nov 2008 21:01:13 -0000

        * etc/bench.pl.in: Bench the three-stack lalr1.cc vs. the
        one-stack one.
---
 ChangeLog       |    6 ++++++
 etc/bench.pl.in |   20 +++++++++++++++++++-
 2 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index c8bb301..173d2e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-11-03  Akim Demaille  <address@hidden>
 
+       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  <address@hidden>
+
        Fail on parse error in calc++.
        * doc/bison.texinfo (calc++.cc): Propagate failures to the exit
        status.
diff --git a/etc/bench.pl.in b/etc/bench.pl.in
index eadfa4b..ae50516 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:
-- 
1.6.0.2.588.g3102





reply via email to

[Prev in Thread] Current Thread [Next in Thread]