RE: [PHP] Internationalisation and MB strings

From: Date: Fri, 01 Aug 2008 16:34:23 +0000
Subject: RE: [PHP] Internationalisation and MB strings
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-277590@lists.php.net to get a copy of this message
On Fri, 2008-08-01 at 11:12 -0500, Boyd, Todd M. wrote: > > -----Original Message----- > > From: bk@myhich.com [mailto:bk@myhich.com] On Behalf Of Yeti > > Sent: Friday, August 01, 2008 10:58 AM > > To: Andrew Ballard > > Cc: PHP General list > > Subject: Re: [PHP] Internationalisation and MB strings > > > > Oh right. Doing 1 measurement only is not even worth a theory. > > > > Well, I'm wondering how much PHP can speed that result up, since we are > > calling the same function with the same parameter 10000 times. Wouldn't > > it > > be even more realistic if we called it with changing strings? > > ---8<--- snip > > > > I ran this script several times, and the results below are fairly > > typical: > > > > > > MB_STRLEN took : 0.054733037948608 milliseconds > > > > > > STRLEN took : 0.037568092346191 milliseconds How did you measure these? I don't recall a time function that returns milliseconds... only functions that return seconds (and parts thereof in microseconds)... such as microtime(). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#277590) next »