Benchmarking PHP page load times

前端 未结 10 2063
借酒劲吻你
借酒劲吻你 2021-01-31 10:56

How could I measure the time taken to load a page (with various different PHP statements)?

Somewhat like the stats available here - http://talks.php.net/show/drupal08/24

10条回答
  •  醉话见心
    2021-01-31 11:42

    Put the following code at the top of your PHP page.

    
    

    The following code has to be put at the end of your page.

    
    

    Note: If you measure the time for particular part of the code put this right start and last PHP code part.

提交回复
热议问题