good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Re: Re: RegExps, Prematch and Postmatch without efficiency penaltyby liz (Monsignor) |
on Sep 14, 2003 at 16:27 UTC ( [id://291415]=note: print w/replies, xml ) | Need Help?? |
...you should do benchmark them in separate scripts.
This is similar to the problem I had trying to benchmark the memory footprint of threaded applications. See Benchmark::Thread::Size for an example of how I embedded scripts within scripts to get a clean memory benchmark. I think a similar (probably simpler) approach could be taken to benchmark alternate approaches to $`, $& and $'. Liz
In Section
Meditations
|
|