开发者

Page Speed - Test Script response speed

开发者 https://www.devze.com 2023-04-12 06:34 出处:网络
I made a website recent and it\'s loading very slow. My Firebug Page Speed Score is 82/100. I think this is good. My website has 2 images and they have 100KB and some other small images for bullets, a

I made a website recent and it's loading very slow. My Firebug Page Speed Score is 82/100. I think this is good. My website has 2 images and they have 100KB and some other small images for bullets, arrows and stuff that have not more that 50KB. Anyway, my point is that the html is quite fast, but I have this html as a Wordpress theme and a new host (cheap one).

My question: How c开发者_运维百科an I find the time for my Wordpress (or any PHP script) to echo out the page requested.

Can I know for sure if the hosting or the script that is making my page work slow?

Thank you!


time your script?

<?php
$start = microtime(true);

  //your script here

$end = microtime(true);
$time = $end - $start;
echo('script took ' . $time . ' seconds to execute.');
?>


I use Fiddler for this. It is a handy tool that can accurately time the entire request and response, to and from the server.

Just open Fiddler, go to your site, select all of the requests related, and click the statistics tab.

0

精彩评论

暂无评论...
验证码 换一张
取 消