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

PrevUpHomeNext

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

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

Expression
Text

std::regex

boost 1.59

boost::xpressive::cregex

PCRE-10.10

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

-

1.44
(340578ns)

1.49
(354327ns)

1.00
(237126ns)

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

-

2.19
(160902ns)

1.21
(89265ns)

1.00
(73565ns)

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

-

1.90
(161009ns)

2.30
(194911ns)

1.00
(84846ns)

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

-

2.27
(164055ns)

1.38
(100267ns)

1.00
(72402ns)

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

-

2.14
(160542ns)

1.72
(129220ns)

1.00
(75127ns)

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

-

1.00
(1136822ns)

-

2.55
(2896286ns)

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

-

1.88
(11915857ns)

1.14
(7206389ns)

1.00
(6347410ns)

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

3.55
(20770292ns)

1.78
(10395642ns)

1.00
(5856680ns)

1.84
(10752084ns)

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

33.79
(2157684ns)

1.00
(63861ns)

1.13
(72354ns)

1.15
(73190ns)

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

-

1.00
(1167674ns)

-

1.47
(1710795ns)

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

-

1.32
(150540ns)

-

1.00
(114132ns)

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

10.62
(1269946ns)

1.43
(171067ns)

1.00
(119573ns)

1.35
(161102ns)

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

10.59
(1271338ns)

1.44
(173240ns)

1.00
(120003ns)

1.34
(160962ns)



PrevUpHomeNext