Welcome to WebmasterWorld Guest from 18.205.176.85

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

How to test for php script performance?

Server Load, Time etc.

     
9:08 am on Jul 7, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 25, 2003
posts:83
votes: 0


Are there other more specific methods this to test out scripts efficiency eg. how much load it puts on the server etc?

For the minute the only way I test the efficiency of a script is by using a time function to see how long it takes to load (obviously the quicker the better).

?

Cheers

Chris

9:05 pm on July 8, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Oct 8, 2002
posts:65
votes: 0


You could set up a webserver benchmark using the script...

Those programs send many requests at once to your server, and you can see how scalable/fast your script is.

9:14 pm on July 8, 2003 (gmt 0)

Administrator

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 24, 2001
posts:15756
votes: 0


Speed is primary, obviously. If the page is going to be publically available and while developing you are the only one using the page, it should be instantaneous. Even the tiniest hesitation can turn into a nightmare with some good traffic. What are the actual times? I have no idea, I would have to benchmark them but I know a trouble script when I see one.

Do we think about system resources? Definitely. How do we evaluate their usage? Speed under load. If you get 10 users on the same page and it starts lagging, big trouble. We all want a million uniques after all so that page better render blazingly fast.

The key to the whole thing is, the quicker the page renders the faster system resources are released. So really, it is all about speed.

<added>working on this post and Asandir answers, so I made some changes

12:08 pm on July 9, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 25, 2003
posts:83
votes: 0


Thank you both! :)

Chris