There are a few different things you can test here...
I. Server Performance (overall)
I don't have the name of any specific tool off hand, but basically you
would request a slew of .php pages off of the server via HTTP and record
how many pages/second actually are served up. This is really the only
thing that matters in the Real World.
II. Script Performance
The replies to this thread have already mentioned functions which will
help you calculate total time spent in a script. Good things to know,
definately, but not the absolute answer. Quite often it's beneficial to
place various outputs along your program (or script in this case) to
figure out where any bottle knecks my lie. Personally, I place them just
before and after a DB call to differentiate slow-downs between my actual
code vs. my SQL code. This way you get to target specifically which
pieces need optimization, if any.
If II is plenty fast for you, but I isn't... start looking at processes
running on the system which you don't need. If beyond that you want to
squeak more out of the system, start optimizating your web-server config.
Before anything though, a quick "Big O" analysis of your script could help
point to performance problems before you can even see them in a benchmark.
Trident Technology, Inc.
4700 60th St. SW, Suite 102
Grand Rapids, MI 49512
On Wed, 22 Aug 2001, haheho wrote:
> Dear all:
> I have wrote a php program and use mysql database.
> Is there a way to test its performance?
> PHP Database 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 Database 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]