douwen9345 2011-10-10 23:40
浏览 35
已采纳

页面速度 - 测试脚本响应速度

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 can 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!

  • 写回答

2条回答 默认 最新

  • duanlv2788 2011-10-11 00:45
    关注

    time your script?

    <?php
    $start = microtime(true);
    
      //your script here
    
    $end = microtime(true);
    $time = $end - $start;
    echo('script took ' . $time . ' seconds to execute.');
    ?>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求学软件的前人们指明方向🥺
  • ¥50 如何增强飞上天的树莓派的热点信号强度,以使得笔记本可以在地面实现远程桌面连接
  • ¥15 MCNP里如何定义多个源?
  • ¥20 双层网络上信息-疾病传播
  • ¥50 paddlepaddle pinn
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services