PHP Script Timer
PHP June 29th, 2008
I try to search some tools to count PHP script execution time. After Googling for a moment I found some script that I want. ^^
There are 3 site that have tutorial how to count PHP script execution time. One of them is http://www.ars-informatica.ca/article.php?article=37. There are any script to count PHP script execution time and written with PHP too. You can look the script or download it for free..
Or I’ll give you link to download (Just click save as). Then extract it.. How to use it?
Just read usage inside PHP_script_timer.php
USAGE
First, the calling code must reference the PHP_script_timer script:
include ‘PHP_script_timer.php’;
Call the timing script at the start of the code to be timed with:
To end the timing sequence, follow the code to be timed with:
To run more the timing loop more then once, and calculate fastest, slowest and
average execution times, simply specify 2 or more $timing_loops.
note: don’t forget to put PHP_script_timer.php to the same folder with PHP script that you want to test.
I used that tools to my final project.. thanks to Ars Informatica for this tools.
The other script are:
http://www.developertutorials.com/tutorials/php/displaying-load-time-php-050620/page1.html
http://www.corecoding.com/getfile.php?file=26
but they are not recommended, because cannot count the average.
All is up to you
I have modified tool by my self here.. Just download and easy to use..
After download extract, copy to your localhost, and run html file with your local host^^
Sphere: Related Content| Tags: PHP |


About




Leave a Comment