Adrian Florescu
Adrian Florescu

Reputation: 4492

Page Speed - Test Script response speed

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!

Upvotes: 3

Views: 8436

Answers (2)

dan
dan

Reputation: 856

time your script?

<?php
$start = microtime(true);

  //your script here

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

Upvotes: 6

Brad
Brad

Reputation: 163301

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.

Upvotes: 1

Related Questions