Re: [PHP] Windows date("Y/m/d H:i:s") performance

2008-07-30 Thread Andrew Ballard
On Wed, Jul 30, 2008 at 12:11 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > I was profiling some code on my local dev box, and in Windows, the > biggest time sink for the home page is... > > a call to date("Y/m/d H:i:s")?! > 917 ms??? > > Here is what I get in a cygwin shell: > php -r '$c = 100; $

[PHP] Windows date("Y/m/d H:i:s") performance

2008-07-30 Thread Richard Lynch
I was profiling some code on my local dev box, and in Windows, the biggest time sink for the home page is... a call to date("Y/m/d H:i:s")?! 917 ms??? Here is what I get in a cygwin shell: php -r '$c = 100; $s = microtime(true); for($i = 0; $i < $c; $i++){ $d = date("Y/m/d H:i:s"); } echo (microt