Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: Re: string manipulationby extremely (Priest) |
on Mar 30, 2001 at 03:31 UTC ( [id://68234]=note: print w/replies, xml ) | Need Help?? |
Post your code for this Benchmark and I'll show you where
it went wrong. I'd bet on the variable you tested against
not being in scope inside the benchmark sub/evals.
My results, Linux on an IBM Netfinity (Intel)
That is a significant differential there for this simple task. A full regexp engine is a big thing to throw at a lightweight string scan. My benchmark code follows:
Oh yeah, I sure am happy Benchmark exists too. =) Doh! Update: that assignment was:
--
In Section
Seekers of Perl Wisdom
|
|