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

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

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

Expression
Text

boost 1.85

std::regex

boost::xpressive::cregex

PCRE-10.43

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

1.00
(14312ns)

-

2.23
(31878ns)

1.31
(18684ns)

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

1.10
(10195ns)

-

1.34
(12441ns)

1.00
(9263ns)

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

1.00
(9687ns)

-

2.10
(20340ns)

1.27
(12333ns)

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

1.07
(10169ns)

-

1.40
(13302ns)

1.00
(9505ns)

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

1.00
(9950ns)

-

1.73
(17184ns)

1.46
(14485ns)

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

1.00
(1549295ns)

-

-

11.09
(17177250ns)

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

1.36
(14276693ns)

-

1.17
(12252446ns)

1.00
(10503162ns)

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

1.22
(7693839ns)

57.46
(363338150ns)

1.00
(6323396ns)

2.15
(13603310ns)

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

1.00
(4643ns)

15.54
(72171ns)

1.30
(6027ns)

1.54
(7151ns)

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

1.00
(1498291ns)

-

-

2.37
(3555960ns)

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

1.29
(212586ns)

-

-

1.00
(164592ns)

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

1.06
(251988ns)

7.99
(1891782ns)

1.00
(236878ns)

1.54
(363700ns)

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

1.00
(228825ns)

7.72
(1765632ns)

1.01
(231986ns)

1.57
(360051ns)



PrevUpHomeNext