1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>Testing simple Perl matches (platform = Windows x64, compiler = Microsoft Visual C++ version 14.1)</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_id3752650613.html" title="Testing Perl searches (platform = Windows x64, compiler = Microsoft Visual C++ version 14.1)"> 10<link rel="next" href="section_id4148872883.html" title="Testing leftmost-longest searches (platform = linux, compiler = GNU C++ version 6.3.0)"> 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_id3752650613.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_id4148872883.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_id4128344975"></a><a class="link" href="section_id4128344975.html" title="Testing simple Perl matches (platform = Windows x64, compiler = Microsoft Visual C++ version 14.1)">Testing 28 simple Perl matches (platform = Windows x64, compiler = Microsoft Visual 29 C++ version 14.1)</a> 30</h4></div></div></div> 31<div class="table"> 32<a name="boost_regex.background.performance.section_id4128344975.table_Testing_simple_Perl_matches_platform_Windows_x64_compiler_Microsoft_Visual_C_version_14_1_"></a><p class="title"><b>Table 14. Testing simple Perl matches (platform = Windows x64, compiler = 33 Microsoft Visual C++ version 14.1)</b></p> 34<div class="table-contents"><table class="table" summary="Testing simple Perl matches (platform = Windows x64, compiler = 35 Microsoft Visual C++ version 14.1)"> 36<colgroup> 37<col> 38<col> 39<col> 40<col> 41<col> 42<col> 43</colgroup> 44<thead><tr> 45<th> 46 <p> 47 Expression<br> Text 48 </p> 49 </th> 50<th> 51 <p> 52 boost 1.65 53 </p> 54 </th> 55<th> 56 <p> 57 PCRE-10.10 58 </p> 59 </th> 60<th> 61 <p> 62 RE2 63 </p> 64 </th> 65<th> 66 <p> 67 std::regex 68 </p> 69 </th> 70<th> 71 <p> 72 boost::xpressive::cregex 73 </p> 74 </th> 75</tr></thead> 76<tbody> 77<tr> 78<td> 79 <p> 80 <code class="literal">([[:digit:]]{4}[- ]){3}[[:digit:]]{3,4}</code><br> 81 <code class="literal">1234-5678-1234-456</code> 82 </p> 83 </td> 84<td> 85 <p> 86 <span class="blue">1.90<br> (328ns)</span> 87 </p> 88 </td> 89<td> 90 <p> 91 <span class="green">1.18<br> (205ns)</span> 92 </p> 93 </td> 94<td> 95 <p> 96 <span class="green">1.00<br> (173ns)</span> 97 </p> 98 </td> 99<td> 100 <p> 101 <span class="red">27.81<br> (4811ns)</span> 102 </p> 103 </td> 104<td> 105 <p> 106 <span class="blue">1.32<br> (228ns)</span> 107 </p> 108 </td> 109</tr> 110<tr> 111<td> 112 <p> 113 <code class="literal">^([0-9]+)(\-| |$)(.*)$</code><br> <code class="literal">100- 114 this is a line of ftp response which contains a message string</code> 115 </p> 116 </td> 117<td> 118 <p> 119 <span class="blue">1.45<br> (251ns)</span> 120 </p> 121 </td> 122<td> 123 <p> 124 <span class="blue">1.73<br> (300ns)</span> 125 </p> 126 </td> 127<td> 128 <p> 129 <span class="blue">2.14<br> (371ns)</span> 130 </p> 131 </td> 132<td> 133 <p> 134 <span class="red">24.75<br> (4281ns)</span> 135 </p> 136 </td> 137<td> 138 <p> 139 <span class="green">1.00<br> (173ns)</span> 140 </p> 141 </td> 142</tr> 143<tr> 144<td> 145 <p> 146 <code class="literal">^([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})(\ 147 ...</code><br> <code class="literal">bob.smith@foo.tv</code> 148 </p> 149 </td> 150<td> 151 <p> 152 <span class="blue">2.53<br> (403ns)</span> 153 </p> 154 </td> 155<td> 156 <p> 157 <span class="blue">2.13<br> (338ns)</span> 158 </p> 159 </td> 160<td> 161 <p> 162 <span class="green">1.00<br> (159ns)</span> 163 </p> 164 </td> 165<td> 166 <p> 167 <span class="red">34.16<br> (5432ns)</span> 168 </p> 169 </td> 170<td> 171 <p> 172 <span class="blue">1.86<br> (295ns)</span> 173 </p> 174 </td> 175</tr> 176<tr> 177<td> 178 <p> 179 <code class="literal">^([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})(\ 180 ...</code><br> <code class="literal">foo12@foo.edu</code> 181 </p> 182 </td> 183<td> 184 <p> 185 <span class="blue">2.75<br> (402ns)</span> 186 </p> 187 </td> 188<td> 189 <p> 190 <span class="blue">2.34<br> (342ns)</span> 191 </p> 192 </td> 193<td> 194 <p> 195 <span class="green">1.00<br> (146ns)</span> 196 </p> 197 </td> 198<td> 199 <p> 200 <span class="red">40.78<br> (5954ns)</span> 201 </p> 202 </td> 203<td> 204 <p> 205 <span class="blue">2.01<br> (294ns)</span> 206 </p> 207 </td> 208</tr> 209<tr> 210<td> 211 <p> 212 <code class="literal">^([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})(\ 213 ...</code><br> <code class="literal">john@johnmaddock.co.uk</code> 214 </p> 215 </td> 216<td> 217 <p> 218 <span class="blue">2.54<br> (469ns)</span> 219 </p> 220 </td> 221<td> 222 <p> 223 <span class="blue">2.16<br> (399ns)</span> 224 </p> 225 </td> 226<td> 227 <p> 228 <span class="green">1.00<br> (185ns)</span> 229 </p> 230 </td> 231<td> 232 <p> 233 <span class="red">44.27<br> (8190ns)</span> 234 </p> 235 </td> 236<td> 237 <p> 238 <span class="blue">2.04<br> (377ns)</span> 239 </p> 240 </td> 241</tr> 242<tr> 243<td> 244 <p> 245 <code class="literal">^[-+]?[[:digit:]]*\.?[[:digit:]]*$</code><br> 246 <code class="literal">+3.14159</code> 247 </p> 248 </td> 249<td> 250 <p> 251 <span class="blue">1.53<br> (171ns)</span> 252 </p> 253 </td> 254<td> 255 <p> 256 <span class="green">1.14<br> (128ns)</span> 257 </p> 258 </td> 259<td> 260 <p> 261 <span class="green">1.11<br> (124ns)</span> 262 </p> 263 </td> 264<td> 265 <p> 266 <span class="red">21.63<br> (2422ns)</span> 267 </p> 268 </td> 269<td> 270 <p> 271 <span class="green">1.00<br> (112ns)</span> 272 </p> 273 </td> 274</tr> 275<tr> 276<td> 277 <p> 278 <code class="literal">^[-+]?[[:digit:]]*\.?[[:digit:]]*$</code><br> 279 <code class="literal">-3.14159</code> 280 </p> 281 </td> 282<td> 283 <p> 284 <span class="blue">1.50<br> (167ns)</span> 285 </p> 286 </td> 287<td> 288 <p> 289 <span class="green">1.15<br> (128ns)</span> 290 </p> 291 </td> 292<td> 293 <p> 294 <span class="green">1.13<br> (125ns)</span> 295 </p> 296 </td> 297<td> 298 <p> 299 <span class="red">21.92<br> (2433ns)</span> 300 </p> 301 </td> 302<td> 303 <p> 304 <span class="green">1.00<br> (111ns)</span> 305 </p> 306 </td> 307</tr> 308<tr> 309<td> 310 <p> 311 <code class="literal">^[-+]?[[:digit:]]*\.?[[:digit:]]*$</code><br> 312 <code class="literal">123</code> 313 </p> 314 </td> 315<td> 316 <p> 317 <span class="blue">1.40<br> (143ns)</span> 318 </p> 319 </td> 320<td> 321 <p> 322 <span class="green">1.15<br> (117ns)</span> 323 </p> 324 </td> 325<td> 326 <p> 327 <span class="green">1.03<br> (105ns)</span> 328 </p> 329 </td> 330<td> 331 <p> 332 <span class="red">35.65<br> (3636ns)</span> 333 </p> 334 </td> 335<td> 336 <p> 337 <span class="green">1.00<br> (102ns)</span> 338 </p> 339 </td> 340</tr> 341<tr> 342<td> 343 <p> 344 <code class="literal">^[[:digit:]]{1,2}/[[:digit:]]{1,2}/[[:digit:]]{4}$</code><br> 345 <code class="literal">12/12/2001</code> 346 </p> 347 </td> 348<td> 349 <p> 350 <span class="blue">1.47<br> (157ns)</span> 351 </p> 352 </td> 353<td> 354 <p> 355 <span class="green">1.00<br> (107ns)</span> 356 </p> 357 </td> 358<td> 359 <p> 360 <span class="blue">1.27<br> (136ns)</span> 361 </p> 362 </td> 363<td> 364 <p> 365 <span class="red">16.75<br> (1792ns)</span> 366 </p> 367 </td> 368<td> 369 <p> 370 <span class="green">1.03<br> (110ns)</span> 371 </p> 372 </td> 373</tr> 374<tr> 375<td> 376 <p> 377 <code class="literal">^[[:digit:]]{1,2}/[[:digit:]]{1,2}/[[:digit:]]{4}$</code><br> 378 <code class="literal">4/1/2001</code> 379 </p> 380 </td> 381<td> 382 <p> 383 <span class="blue">1.39<br> (145ns)</span> 384 </p> 385 </td> 386<td> 387 <p> 388 <span class="green">1.00<br> (104ns)</span> 389 </p> 390 </td> 391<td> 392 <p> 393 <span class="green">1.13<br> (117ns)</span> 394 </p> 395 </td> 396<td> 397 <p> 398 <span class="red">16.90<br> (1758ns)</span> 399 </p> 400 </td> 401<td> 402 <p> 403 <span class="green">1.07<br> (111ns)</span> 404 </p> 405 </td> 406</tr> 407<tr> 408<td> 409 <p> 410 <code class="literal">^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$</code><br> 411 <code class="literal">EH10 2QQ</code> 412 </p> 413 </td> 414<td> 415 <p> 416 <span class="blue">1.44<br> (164ns)</span> 417 </p> 418 </td> 419<td> 420 <p> 421 <span class="green">1.00<br> (114ns)</span> 422 </p> 423 </td> 424<td> 425 <p> 426 <span class="green">1.10<br> (125ns)</span> 427 </p> 428 </td> 429<td> 430 <p> 431 <span class="red">15.61<br> (1779ns)</span> 432 </p> 433 </td> 434<td> 435 <p> 436 <span class="green">1.06<br> (121ns)</span> 437 </p> 438 </td> 439</tr> 440<tr> 441<td> 442 <p> 443 <code class="literal">^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$</code><br> 444 <code class="literal">G1 1AA</code> 445 </p> 446 </td> 447<td> 448 <p> 449 <span class="blue">1.36<br> (152ns)</span> 450 </p> 451 </td> 452<td> 453 <p> 454 <span class="green">1.00<br> (112ns)</span> 455 </p> 456 </td> 457<td> 458 <p> 459 <span class="green">1.04<br> (117ns)</span> 460 </p> 461 </td> 462<td> 463 <p> 464 <span class="red">15.86<br> (1776ns)</span> 465 </p> 466 </td> 467<td> 468 <p> 469 <span class="green">1.05<br> (118ns)</span> 470 </p> 471 </td> 472</tr> 473<tr> 474<td> 475 <p> 476 <code class="literal">^[a-zA-Z]{1,2}[0-9][0-9A-Za-z]{0,1} {0,1}[0-9][A-Za-z]{2}$</code><br> 477 <code class="literal">SW1 1ZZ</code> 478 </p> 479 </td> 480<td> 481 <p> 482 <span class="blue">1.40<br> (158ns)</span> 483 </p> 484 </td> 485<td> 486 <p> 487 <span class="green">1.00<br> (113ns)</span> 488 </p> 489 </td> 490<td> 491 <p> 492 <span class="green">1.10<br> (124ns)</span> 493 </p> 494 </td> 495<td> 496 <p> 497 <span class="red">15.86<br> (1792ns)</span> 498 </p> 499 </td> 500<td> 501 <p> 502 <span class="green">1.07<br> (121ns)</span> 503 </p> 504 </td> 505</tr> 506<tr> 507<td> 508 <p> 509 <code class="literal">abc</code><br> <code class="literal">abc</code> 510 </p> 511 </td> 512<td> 513 <p> 514 <span class="blue">2.01<br> (141ns)</span> 515 </p> 516 </td> 517<td> 518 <p> 519 <span class="green">1.00<br> (70ns)</span> 520 </p> 521 </td> 522<td> 523 <p> 524 <span class="green">1.17<br> (82ns)</span> 525 </p> 526 </td> 527<td> 528 <p> 529 <span class="red">8.24<br> (577ns)</span> 530 </p> 531 </td> 532<td> 533 <p> 534 <span class="green">1.19<br> (83ns)</span> 535 </p> 536 </td> 537</tr> 538</tbody> 539</table></div> 540</div> 541<br class="table-break"> 542</div> 543<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 544<td align="left"></td> 545<td align="right"><div class="copyright-footer">Copyright © 1998-2013 John Maddock<p> 546 Distributed under the Boost Software License, Version 1.0. (See accompanying 547 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>) 548 </p> 549</div></td> 550</tr></table> 551<hr> 552<div class="spirit-nav"> 553<a accesskey="p" href="section_id3752650613.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_id4148872883.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 554</div> 555</body> 556</html> 557