RE: [PHP] How to mesure response time of php pages

2004-03-10 Thread Chris W. Parker
Merlin mailto:[EMAIL PROTECTED]
on Wednesday, March 10, 2004 5:05 PM said:

 can anybody recommend tools to messure page loading time of php pages.
 I am working on a new site and it apears to me that the old one loads
 much faster. Are there any tools around to break this down to hard
 numbers? 

you can time your scripts on the command line to see how long they
execute. maybe that will shed some light?

$ time php myscript.php

another idea is that maybe the old server was gzipping the data before
it went over the pipe and now it's not?


chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How to mesure response time of php pages

2004-03-10 Thread Jason Sheets
You can also use something like Turck MMCache to accelerate the scripts.
There is a class at http://pear.php.net for benchmarking PHP scripts and you
can use a web client that times how long it takes to download a page.

I would look at template caching and Turck MMCache to increase performance.

jason 

-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 10, 2004 6:15 PM
To: Merlin; [EMAIL PROTECTED]
Subject: RE: [PHP] How to mesure response time of php pages

Merlin mailto:[EMAIL PROTECTED]
on Wednesday, March 10, 2004 5:05 PM said:

 can anybody recommend tools to messure page loading time of php pages.
 I am working on a new site and it apears to me that the old one loads 
 much faster. Are there any tools around to break this down to hard 
 numbers?

you can time your scripts on the command line to see how long they execute.
maybe that will shed some light?

$ time php myscript.php

another idea is that maybe the old server was gzipping the data before it
went over the pipe and now it's not?


chris.

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to mesure response time of php pages

2004-03-10 Thread Tom Rogers
Hi,

Thursday, March 11, 2004, 11:05:08 AM, you wrote:
M Hi there,

M can anybody recommend tools to messure page loading time of php pages.
M I am working on a new site and it apears to me that the old one loads
M much faster. Are there any tools around to break this down to hard numbers?

M thanx for any hint,

M merlin


Apache comes with a benchmark tool called ab which is good for this
kind of thing. You will need to give it a full path like
http://domain.com/index.php

-- 
regards,
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php