I am working on is a website which features:
- user signup
- user login
- add friend/delete friend
- karma
- hotlinks (user can add any page to there nav)
- admin panel (available to admin personnel only)
- user email system
I have created all of these things and they all work how they should. How I can test the php scripts–not the load time of the page, but the actual runtime of each script on each page?
You’ll want to invoke micro time.
At the beginning of your script:
At the end of the script, and be sure to use this variable method or else you may get a negative:
To get this time in miliseconds, you can do:
One good way to benchmark is just take a look at the average run time of some of the more popular PHP applications. Many put parse time in the footer.