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 a snapshot of the develop branch, built from commit 36319504d5.
PrevUpHomeNext

Testing simple Perl matches (platform = Windows x64, compiler = Microsoft Visual C++ version 14.1)

Table 14. Testing simple Perl matches (platform = Windows x64, compiler = Microsoft Visual C++ version 14.1)

Expression
Text

boost 1.65

PCRE-10.10

RE2

std::regex

boost::xpressive::cregex

([[:digit:]]{4}[- ]){3}[[:digit:]]{3,4}
1234-5678-1234-456

1.90
(328ns)

1.18
(205ns)

1.00
(173ns)

27.81
(4811ns)

1.32
(228ns)

^([0-9]+)(\-| |$)(.*)$
100- this is a line of ftp response which contains a message string

1.45
(251ns)

1.73
(300ns)

2.14
(371ns)

24.75
(4281ns)

1.00
(173ns)

^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\ ...
bob.smith@foo.tv

2.53
(403ns)

2.13
(338ns)

1.00
(159ns)

34.16
(5432ns)

1.86
(295ns)

^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\ ...
foo12@foo.edu

2.75
(402ns)

2.34
(342ns)

1.00
(146ns)

40.78
(5954ns)

2.01
(294ns)

^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\ ...
john@johnmaddock.co.uk

2.54
(469ns)

2.16
(399ns)

1.00
(185ns)

44.27
(8190ns)

2.04
(377ns)

^[-+]?[[:digit:]]*\.?[[:digit:]]*$
+3.14159

1.53
(171ns)

1.14
(128ns)

1.11
(124ns)

21.63
(2422ns)

1.00
(112ns)

^[-+]?[[:digit:]]*\.?[[:digit:]]*$
-3.14159

1.50
(167ns)

1.15
(128ns)

1.13
(125ns)

21.92
(2433ns)

1.00
(111ns)

^[-+]?[[:digit:]]*\.?[[:digit:]]*$
123

1.40
(143ns)

1.15
(117ns)

1.03
(105ns)

35.65
(3636ns)

1.00
(102ns)

^[[:digit:]]{1,2}/[[:digit:]]{1,2}/[[:digit:]]{4}$
12/12/2001

1.47
(157ns)

1.00
(107ns)

1.27
(136ns)

16.75
(1792ns)

1.03
(110ns)

^[[:digit:]]{1,2}/[[:digit:]]{1,2}/[[:digit:]]{4}$
4/1/2001

1.39
(145ns)

1.00
(104ns)

1.13
(117ns)

16.90
(1758ns)

1.07
(111ns)

^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$
EH10 2QQ

1.44
(164ns)

1.00
(114ns)

1.10
(125ns)

15.61
(1779ns)

1.06
(121ns)

^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$
G1 1AA

1.36
(152ns)

1.00
(112ns)

1.04
(117ns)

15.86
(1776ns)

1.05
(118ns)

^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$
SW1 1ZZ

1.40
(158ns)

1.00
(113ns)

1.10
(124ns)

15.86
(1792ns)

1.07
(121ns)

abc
abc

2.01
(141ns)

1.00
(70ns)

1.17
(82ns)

8.24
(577ns)

1.19
(83ns)



PrevUpHomeNext