Running "pike -x benchmark" using a fairly recent pike 7.7, I get really
bad results on the "Tag removal u. Regexp.PCRE" test. So bad that I've
actually never bothered to let it finish, it just sits there sucking up
CPU for a long time. If I change the number of times the test is run
from 2000 to 200 I can see that it actually does work, its just
incredibly slow.
Is this normal, or is my PCRE lib performing horribly badly for some
reason? Here's what it looks like after changing n to be 200 instead
of 2000 in Tools.pmod/Shoot.pmod/TagRemovePCRE.pike
Tag removal u. array_sscanf 3.936s 3.135s ? (2) (96 /s)
Tag removal u. division.... 3.909s 3.055s ? (2) (65 /s)
Tag removal using a loop... 4.081s 3.070s ? (2) (16 /s)
Tag removal u. Regexp.PCRE.161.214s 143.930s ? (1) (1 /s)
Tag removal u. Parser.HTML. 5.003s 4.590s ? (1) (65 /s)
Tag removal u. search...... 5.088s 4.680s ? (1) (64 /s)
Tag removal using sscanf...24.450s 22.770s ? (1) (1 /s)
Thanks
Adam