|Think about Loose Coupling|
Re: Re: Re: string manipulationby Xxaxx (Monk)
|on Mar 30, 2001 at 01:15 UTC||Need Help??|
I recommend running the benchmark again using the actual functions.
In your referenced benchmark you're comparing:
$data =~ tr/a-z/A-Z/;
The uc($1) is a little different than:
When I ran the actual benchmark I got the following results:
Run 1: (n=5000000)
Run 2: (n=5000000)
Run 3: (n=5000000)
Seems like they are pretty much equal. But, alas, I'm real new to this benchmark stuff and I could have some weird caching issue.
Even so without the eval of uc($1) this is certainly no 17 to 1 ratio as the referenced benchmark shows.
Hope this helps