1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Testing Perl searches (platform = linux, compiler = GNU C++ version 6.3.0)</title> 5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../index.html" title="Boost.Regex 5.1.4"> 8<link rel="up" href="../performance.html" title="Performance"> 9<link rel="prev" href="section_id1378460593.html" title="Testing simple leftmost-longest matches (platform = linux, compiler = GNU C++ version 6.3.0)"> 10<link rel="next" href="section_id3141719723.html" title="Testing simple leftmost-longest matches (platform = Windows x64, compiler = Microsoft Visual C++ version 14.1)"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="section_id1378460593.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../performance.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="section_id3141719723.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h4 class="title"> 27<a name="boost_regex.background.performance.section_id1675827111"></a><a class="link" href="section_id1675827111.html" title="Testing Perl searches (platform = linux, compiler = GNU C++ version 6.3.0)">Testing 28 Perl searches (platform = linux, compiler = GNU C++ version 6.3.0)</a> 29</h4></div></div></div> 30<div class="table"> 31<a name="boost_regex.background.performance.section_id1675827111.table_Testing_Perl_searches_platform_linux_compiler_GNU_C_version_6_3_0_"></a><p class="title"><b>Table 9. Testing Perl searches (platform = linux, compiler = GNU C++ version 32 6.3.0)</b></p> 33<div class="table-contents"><table class="table" summary="Testing Perl searches (platform = linux, compiler = GNU C++ version 34 6.3.0)"> 35<colgroup> 36<col> 37<col> 38<col> 39<col> 40<col> 41</colgroup> 42<thead><tr> 43<th> 44 <p> 45 Expression<br> Text 46 </p> 47 </th> 48<th> 49 <p> 50 boost 1.65 51 </p> 52 </th> 53<th> 54 <p> 55 std::regex 56 </p> 57 </th> 58<th> 59 <p> 60 boost::xpressive::cregex 61 </p> 62 </th> 63<th> 64 <p> 65 PCRE-10.21 66 </p> 67 </th> 68</tr></thead> 69<tbody> 70<tr> 71<td> 72 <p> 73 <code class="literal">(?i)<a[^>]+href=("[^"]*"|[^[:space:]]+)[^>]*></code><br> 74 In file: ..<span class="emphasis"><em>..</em></span>../libs/libraries.htm 75 </p> 76 </td> 77<td> 78 <p> 79 <span class="blue">1.63<br> (28838ns)</span> 80 </p> 81 </td> 82<td> 83 <p> 84 <span class="grey">-</span> 85 </p> 86 </td> 87<td> 88 <p> 89 <span class="blue">1.67<br> (29436ns)</span> 90 </p> 91 </td> 92<td> 93 <p> 94 <span class="green">1.00<br> (17678ns)</span> 95 </p> 96 </td> 97</tr> 98<tr> 99<td> 100 <p> 101 <code class="literal">(?i)<font[^>]+face=("[^"]*"|[^[:space:]]+)[^>]*>.*?</font></code><br> 102 In file: ..<span class="emphasis"><em>..</em></span>../libs/libraries.htm 103 </p> 104 </td> 105<td> 106 <p> 107 <span class="blue">2.78<br> (19366ns)</span> 108 </p> 109 </td> 110<td> 111 <p> 112 <span class="grey">-</span> 113 </p> 114 </td> 115<td> 116 <p> 117 <span class="blue">1.50<br> (10471ns)</span> 118 </p> 119 </td> 120<td> 121 <p> 122 <span class="green">1.00<br> (6963ns)</span> 123 </p> 124 </td> 125</tr> 126<tr> 127<td> 128 <p> 129 <code class="literal">(?i)<h[12345678][^>]*>.*?</h[12345678]></code><br> 130 In file: ..<span class="emphasis"><em>..</em></span>../libs/libraries.htm 131 </p> 132 </td> 133<td> 134 <p> 135 <span class="blue">1.95<br> (17081ns)</span> 136 </p> 137 </td> 138<td> 139 <p> 140 <span class="grey">-</span> 141 </p> 142 </td> 143<td> 144 <p> 145 <span class="blue">2.18<br> (19086ns)</span> 146 </p> 147 </td> 148<td> 149 <p> 150 <span class="green">1.00<br> (8745ns)</span> 151 </p> 152 </td> 153</tr> 154<tr> 155<td> 156 <p> 157 <code class="literal">(?i)<img[^>]+src=("[^"]*"|[^[:space:]]+)[^>]*></code><br> 158 In file: ..<span class="emphasis"><em>..</em></span>../libs/libraries.htm 159 </p> 160 </td> 161<td> 162 <p> 163 <span class="blue">2.61<br> (18132ns)</span> 164 </p> 165 </td> 166<td> 167 <p> 168 <span class="grey">-</span> 169 </p> 170 </td> 171<td> 172 <p> 173 <span class="blue">1.61<br> (11211ns)</span> 174 </p> 175 </td> 176<td> 177 <p> 178 <span class="green">1.00<br> (6952ns)</span> 179 </p> 180 </td> 181</tr> 182<tr> 183<td> 184 <p> 185 <code class="literal">(?i)<p>.*?</p></code><br> In file: 186 ..<span class="emphasis"><em>..</em></span>../libs/libraries.htm 187 </p> 188 </td> 189<td> 190 <p> 191 <span class="blue">1.69<br> (17517ns)</span> 192 </p> 193 </td> 194<td> 195 <p> 196 <span class="grey">-</span> 197 </p> 198 </td> 199<td> 200 <p> 201 <span class="blue">1.51<br> (15645ns)</span> 202 </p> 203 </td> 204<td> 205 <p> 206 <span class="green">1.00<br> (10345ns)</span> 207 </p> 208 </td> 209</tr> 210<tr> 211<td> 212 <p> 213 <code class="literal">(\w+)\s*(\([^()]++(?:(?2)[^()]++)*+[^)]*\))\s*(\{[^{}]++((?3)[^{}]++)*+[^}]*+\})</code><br> 214 In file: boost/multiprecision/number.hpp 215 </p> 216 </td> 217<td> 218 <p> 219 <span class="green">1.00<br> (1500580ns)</span> 220 </p> 221 </td> 222<td> 223 <p> 224 <span class="grey">-</span> 225 </p> 226 </td> 227<td> 228 <p> 229 <span class="grey">-</span> 230 </p> 231 </td> 232<td> 233 <p> 234 <span class="blue">2.84<br> (4260530ns)</span> 235 </p> 236 </td> 237</tr> 238<tr> 239<td> 240 <p> 241 <code class="literal">(^[ \t]*#(?:(?>[^\\\n]+)|\\(?>\s*\n|.))*)|</code><br> 242 In file: boost/multiprecision/number.hpp 243 </p> 244 </td> 245<td> 246 <p> 247 <span class="blue">1.64<br> (14163004ns)</span> 248 </p> 249 </td> 250<td> 251 <p> 252 <span class="grey">-</span> 253 </p> 254 </td> 255<td> 256 <p> 257 <span class="green">1.00<br> (8632111ns)</span> 258 </p> 259 </td> 260<td> 261 <p> 262 <span class="green">1.03<br> (8907897ns)</span> 263 </p> 264 </td> 265</tr> 266<tr> 267<td> 268 <p> 269 <code class="literal">(template[[:space:]]*<[^;:{]+>[[:space:]]*)?(class|struct)[[:space:]]*(\w+([ 270 ]*\([^)]*\))?[\u0 ...</code><br> In file: boost/multiprecision/number.hpp 271 </p> 272 </td> 273<td> 274 <p> 275 <span class="blue">1.72<br> (13046296ns)</span> 276 </p> 277 </td> 278<td> 279 <p> 280 <span class="blue">3.61<br> (27370747ns)</span> 281 </p> 282 </td> 283<td> 284 <p> 285 <span class="green">1.00<br> (7585304ns)</span> 286 </p> 287 </td> 288<td> 289 <p> 290 <span class="blue">1.98<br> (14992880ns)</span> 291 </p> 292 </td> 293</tr> 294<tr> 295<td> 296 <p> 297 <code class="literal">Beman|John|Dave</code><br> In file: ..<span class="emphasis"><em>..</em></span>../libs/libraries.htm 298 </p> 299 </td> 300<td> 301 <p> 302 <span class="green">1.00<br> (5021ns)</span> 303 </p> 304 </td> 305<td> 306 <p> 307 <span class="red">36.75<br> (184532ns)</span> 308 </p> 309 </td> 310<td> 311 <p> 312 <span class="blue">1.40<br> (7046ns)</span> 313 </p> 314 </td> 315<td> 316 <p> 317 <span class="green">1.19<br> (5966ns)</span> 318 </p> 319 </td> 320</tr> 321<tr> 322<td> 323 <p> 324 <code class="literal">\w+\s*(\([^()]++(?:(?1)[^()]++)*+[^)]*\))</code><br> 325 In file: boost/multiprecision/number.hpp 326 </p> 327 </td> 328<td> 329 <p> 330 <span class="green">1.00<br> (1551419ns)</span> 331 </p> 332 </td> 333<td> 334 <p> 335 <span class="grey">-</span> 336 </p> 337 </td> 338<td> 339 <p> 340 <span class="grey">-</span> 341 </p> 342 </td> 343<td> 344 <p> 345 <span class="blue">1.58<br> (2444759ns)</span> 346 </p> 347 </td> 348</tr> 349<tr> 350<td> 351 <p> 352 <code class="literal">\{[^{}]++((?0)[^{}]++)*+[^}]*+\}</code><br> In 353 file: boost/multiprecision/number.hpp 354 </p> 355 </td> 356<td> 357 <p> 358 <span class="blue">1.31<br> (200846ns)</span> 359 </p> 360 </td> 361<td> 362 <p> 363 <span class="grey">-</span> 364 </p> 365 </td> 366<td> 367 <p> 368 <span class="grey">-</span> 369 </p> 370 </td> 371<td> 372 <p> 373 <span class="green">1.00<br> (153117ns)</span> 374 </p> 375 </td> 376</tr> 377<tr> 378<td> 379 <p> 380 <code class="literal">^[ ]*#[ ]*include[ ]+("[^"]+"|<[^>]+>)</code><br> 381 In file: boost/multiprecision/number.hpp 382 </p> 383 </td> 384<td> 385 <p> 386 <span class="blue">1.46<br> (234901ns)</span> 387 </p> 388 </td> 389<td> 390 <p> 391 <span class="red">11.35<br> (1821532ns)</span> 392 </p> 393 </td> 394<td> 395 <p> 396 <span class="green">1.00<br> (160446ns)</span> 397 </p> 398 </td> 399<td> 400 <p> 401 <span class="blue">1.35<br> (215802ns)</span> 402 </p> 403 </td> 404</tr> 405<tr> 406<td> 407 <p> 408 <code class="literal">^[ ]*#[ ]*include[ ]+("boost/[^"]+"|<boost/[^>]+>)</code><br> 409 In file: boost/multiprecision/number.hpp 410 </p> 411 </td> 412<td> 413 <p> 414 <span class="blue">1.41<br> (234377ns)</span> 415 </p> 416 </td> 417<td> 418 <p> 419 <span class="red">11.47<br> (1903901ns)</span> 420 </p> 421 </td> 422<td> 423 <p> 424 <span class="green">1.00<br> (165921ns)</span> 425 </p> 426 </td> 427<td> 428 <p> 429 <span class="blue">1.31<br> (217806ns)</span> 430 </p> 431 </td> 432</tr> 433</tbody> 434</table></div> 435</div> 436<br class="table-break"> 437</div> 438<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 439<td align="left"></td> 440<td align="right"><div class="copyright-footer">Copyright © 1998-2013 John Maddock<p> 441 Distributed under the Boost Software License, Version 1.0. (See accompanying 442 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 443 </p> 444</div></td> 445</tr></table> 446<hr> 447<div class="spirit-nav"> 448<a accesskey="p" href="section_id1378460593.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../performance.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="section_id3141719723.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 449</div> 450</body> 451</html> 452