From e9ba172c2226d518e64d9db296a1308a596699cd Mon Sep 17 00:00:00 2001
From: John Maddock For each of the following regular expressions the time taken to find all
occurrences of the expression within a medium sized English language text was
- measured (the first 50K from mtent12.txt). Dynamic Xpressive ";
+#endif
+#ifndef BOOST_NO_0X_HDR_REGEX
+ if(time_std == true)
+ os << "std::regex ";
#endif
os << "\n";
@@ -307,7 +324,6 @@ void output_html_results(bool show_description, const std::string& tagname)
}
}
#endif
-#if defined(BOOST_HAS_POSIX)
if(time_boost == true)
{
print_result(os, first->boost_time, first->factor);
@@ -317,7 +333,6 @@ void output_html_results(bool show_description, const std::string& tagname)
++boost_test_count;
}
}
-#endif
if(time_localised_boost == true)
{
print_result(os, first->localised_boost_time, first->factor);
@@ -357,6 +372,17 @@ void output_html_results(bool show_description, const std::string& tagname)
++xpressive_test_count;
}
}
+#endif
+#ifndef BOOST_NO_0X_HDR_REGEX
+ if(time_std == true)
+ {
+ print_result(os, first->std_time, first->factor);
+ if(first->std_time > 0)
+ {
+ std_total += first->std_time / first->factor;
+ ++std_test_count;
+ }
+ }
#endif
os << "\n";
++first;
@@ -429,6 +455,12 @@ std::string get_averages_table()
{
os << "Dynamic Xpressive ";
}
+#endif
+#ifndef BOOST_NO_0X_HDR_REGEX
+ if(time_std == true)
+ {
+ os << "std::regex ";
+ }
#endif
os << "\n";
@@ -446,6 +478,8 @@ std::string get_averages_table()
if(time_boost == true)
os << "" << (boost_total / boost_test_count) << " \n";
#endif
+ if(time_boost == true)
+ os << "" << (boost_total / boost_test_count) << " \n";
if(time_localised_boost == true)
os << "" << (locale_boost_total / locale_boost_test_count) << " \n";
if(time_posix == true)
@@ -457,6 +491,10 @@ std::string get_averages_table()
#if defined(BOOST_HAS_XPRESSIVE)
if(time_xpressive == true)
os << "" << (xpressive_total / xpressive_test_count) << " \n";
+#endif
+#ifndef BOOST_NO_0X_HDR_REGEX
+ if(time_std == true)
+ os << "" << (std_total / std_test_count) << " \n";
#endif
os << "\n";
os << "\n";
diff --git a/performance/input.html b/performance/input.html
index 9b2312b8..425dedeb 100644
--- a/performance/input.html
+++ b/performance/input.html
@@ -46,7 +46,7 @@
Comparison 2: Medium Sized Search
%short_twain_search%
For each of the following regular expressions the time taken to find all @@ -73,3 +73,4 @@