2

I have a website developed with PHP from scratch, and I want to know the load time of my php script (my page) in localhost.

is there any method or tools to check that ? I try to use Performance on Google Chrome, but it's very hard to understand, and with some search on Google I found the firebug plugins of firefox, but it's deleted.

is there any solution ?

sayou
  • 893
  • 8
  • 29

2 Answers2

1

I you want the mesure the loading time browser-side, as Madhawa commented, you can view it in the network tab of chrome's developer tools :

enter image description here

If you want the exact execution time of your script, it should be done server-side by checking the time before and after the script. Daniels link should point you to the right direction.

Zak
  • 1,005
  • 10
  • 22
  • The `Time` return the script load time ? – sayou Mar 01 '19 at 10:32
  • It's the time between the request and the reception of the response, including the script's execution time, if it's synchronous. – Zak Mar 01 '19 at 10:43
  • Thanks for your help sir, that can help me, because I want to know how long my page take, to optimize on the local (in the past I need to hosted it and using online testing) – sayou Mar 01 '19 at 13:57
1
 <?php
$time = microtime();
$time = explode(' ', $time);
$time = $time[1] + $time[0];
$start = $time;
echo $start;
?>

Try this