
19 Sep
2005
19 Sep
'05
9:49 a.m.
Right off, I spotted a couple of problems with your performance test:
1) The xpressive functions all have try/catch blocks in them, but the boost functions do not.
Right, but it's outside the timing code: I had to add the exception handling to get the tests to run to completion because one of the expressions was throwing, because xpressive wouldn't parse it.
2) You are not passing the "optimize" syntax_option_type flag to xpressive's regex constructor.
Ahah! That would be it probably.
3) People who care about performance *will* take the time to rewrite their patterns as static regexes, so a perf test that excludes static xpressive is less interesting.
Yep, I realise that. John.