Re: [PHP] Re: comparing scripts performance

2001-08-29 Thread Ben-Nes Michael

Thanks from Israel :)

 it helps, though I hope they will develope a function that returns speed,
memory or even performance detail on parts of the script.

Like:

The for() took 3ms and consumed ... memory
the while() took 2ms and consumed ... memory
...
...

> you might want to add this to each of the scripts and see:
>  //very first line of the script
> echo "Script started at:" . date("D M j g:i:s T Y");
> //very last line of the script
> echo "Script ended at:" . date("D M j g:i:s T Y");
> ?>
>
> btw, check the microtime() it have exatly what you're looking for.
>
> Greetings from Lebanon ;)
>
> > Is there a way to compare between two scripts ?
> >
> > like how much time took every script or how much memory/resources it
used.
> >
--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-4-6991122
http://sites.canaan.co.il
--


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: comparing scripts performance

2001-08-29 Thread _lallous

you might want to add this to each of the scripts and see:


btw, check the microtime() it have exatly what you're looking for.

Greetings from Lebanon ;)


"Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
00c601c13066$990f51c0$[EMAIL PROTECTED]">news:00c601c13066$990f51c0$[EMAIL PROTECTED]...
> Is there a way to compare between two scripts ?
>
> like how much time took every script or how much memory/resources it used.
>
> --
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]