Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Testing Perl searches (platform = linux, compiler = GNU C++ version 6.3.0)

Table 9. Testing Perl searches (platform = linux, compiler = GNU C++ version 6.3.0)

Expression
Text

boost 1.65

std::regex

boost::xpressive::cregex

PCRE-10.21

(?i)<a[^>]+href=("[^"]*"|[^[:space:]]+)[^>]*>
In file: ....../libs/libraries.htm

1.63
(28838ns)

-

1.67
(29436ns)

1.00
(17678ns)

(?i)<font[^>]+face=("[^"]*"|[^[:space:]]+)[^>]*>.*?</font>
In file: ....../libs/libraries.htm

2.78
(19366ns)

-

1.50
(10471ns)

1.00
(6963ns)

(?i)<h[12345678][^>]*>.*?</h[12345678]>
In file: ....../libs/libraries.htm

1.95
(17081ns)

-

2.18
(19086ns)

1.00
(8745ns)

(?i)<img[^>]+src=("[^"]*"|[^[:space:]]+)[^>]*>
In file: ....../libs/libraries.htm

2.61
(18132ns)

-

1.61
(11211ns)

1.00
(6952ns)

(?i)<p>.*?</p>
In file: ....../libs/libraries.htm

1.69
(17517ns)

-

1.51
(15645ns)

1.00
(10345ns)

(\w+)\s*(\([^()]++(?:(?2)[^()]++)*+[^)]*\))\s*(\{[^{}]++((?3)[^{}]++)*+[^}]*+\})
In file: boost/multiprecision/number.hpp

1.00
(1500580ns)

-

-

2.84
(4260530ns)

(^[ \t]*#(?:(?>[^\\\n]+)|\\(?>\s*\n|.))*)|
In file: boost/multiprecision/number.hpp

1.64
(14163004ns)

-

1.00
(8632111ns)

1.03
(8907897ns)

(template[[:space:]]*<[^;:{]+>[[:space:]]*)?(class|struct)[[:space:]]*(\w+([ ]*\([^)]*\))?[\u0 ...
In file: boost/multiprecision/number.hpp

1.72
(13046296ns)

3.61
(27370747ns)

1.00
(7585304ns)

1.98
(14992880ns)

Beman|John|Dave
In file: ....../libs/libraries.htm

1.00
(5021ns)

36.75
(184532ns)

1.40
(7046ns)

1.19
(5966ns)

\w+\s*(\([^()]++(?:(?1)[^()]++)*+[^)]*\))
In file: boost/multiprecision/number.hpp

1.00
(1551419ns)

-

-

1.58
(2444759ns)

\{[^{}]++((?0)[^{}]++)*+[^}]*+\}
In file: boost/multiprecision/number.hpp

1.31
(200846ns)

-

-

1.00
(153117ns)

^[ ]*#[ ]*include[ ]+("[^"]+"|<[^>]+>)
In file: boost/multiprecision/number.hpp

1.46
(234901ns)

11.35
(1821532ns)

1.00
(160446ns)

1.35
(215802ns)

^[ ]*#[ ]*include[ ]+("boost/[^"]+"|<boost/[^>]+>)
In file: boost/multiprecision/number.hpp

1.41
(234377ns)

11.47
(1903901ns)

1.00
(165921ns)

1.31
(217806ns)



PrevUpHomeNext