Chris Wagner wrote:
> At 07:33 AM 3/3/05 -0800, $Bill Luebkert wrote:
>
>>I tried 3 different lengths of $text and substr is the clear winner.
>>Longest string:
>> Rate RE substr
>>RE 916926/s -- -70%
>>substr 3076923/s 236% --
>
>
>
> That's very interesting, I ran ur exact code (except for $x++) and I got a
> much smaller difference.
>
> Rate RE substr
> RE 1336898/s -- -3%
> substr 1381215/s 3% --
>
> 27 seconds
>
> Rate RE substr
> RE 1319261/s -- -9%
> substr 1445087/s 10% --
>
> 26 seconds
>
> I have build 811 on Celeron 1.4GHz. Do u have some optimization that
> drastically speeds up substr?
That's interesting that your RE runs faster than mine and your CPU is
only 1.4.
I'm running B811 on an AMD Athlon 64 3200+
Removing the $x++, I get (for longest string) :
RE 949668/s -- -72%
substr 3441156/s 262% --
May have something to do with my 64-bit architecture or the fact
that your on a Celeron rather than a normal Pentium.
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs