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 for the latest Boost documentation.
PrevUpHomeNext

Testing Perl searches (platform = Windows x64, compiler = Microsoft Visual C++ version 14.0)

Table 8. Testing Perl searches (platform = Windows x64, compiler = Microsoft Visual C++ version 14.0)

Expression
Text

boost 1.60

PCRE-10.10

RE2

std::regex

boost::xpressive::cregex

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

1.26
(320274ns)

1.00
(253424ns)

1.45
(366324ns)

-

3.00
(759495ns)

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

2.94
(198426ns)

1.28
(86670ns)

1.00
(67463ns)

-

2.92
(197323ns)

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

2.42
(196304ns)

1.26
(102129ns)

1.00
(81160ns)

-

5.12
(415932ns)

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

2.87
(196348ns)

1.28
(87365ns)

1.00
(68502ns)

-

3.25
(222612ns)

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

2.78
(194346ns)

1.27
(88709ns)

1.00
(70020ns)

-

4.03
(282425ns)

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

1.00
(1094575ns)

2.87
(3136734ns)

-

-

-

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

1.92
(11651545ns)

1.00
(6057879ns)

-

-

1.55
(9388319ns)

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

29.23
(8736875ns)

38.71
(11569512ns)

1.00
(298862ns)

995.92
(297642713ns)

27.63
(8258368ns)

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

1.60
(153603ns)

1.10
(105220ns)

2.55
(244839ns)

8.53
(819095ns)

1.00
(96081ns)

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

1.00
(1099128ns)

1.66
(1824126ns)

-

-

-

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

1.60
(243611ns)

1.00
(152166ns)

-

-

-

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

1.54
(260929ns)

1.18
(198707ns)

1.81
(305923ns)

8.53
(1440180ns)

1.00
(168902ns)

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

1.52
(256685ns)

1.17
(198358ns)

1.80
(303602ns)

8.51
(1438197ns)

1.00
(168968ns)



PrevUpHomeNext