Background Top Border Background Middle Border

Website Speed Test

Website speed test
Shows how fast a specific webpage loads.

Your domain(s): Enter each address on a new line (Maximum 10)
 

(eg. yoursite.com)

 

$urls = trim(@$_REQUEST['domain']);
if($urls && checkImage())
{
$urls = str_replace("rn","n",$urls);
$urls = explode("n",$urls);

$results = array();
foreach($urls as $link)
{
$link = preg_match("#\w+://#",$link) ? $link : "http://".$link;
$start = microtime(true);
$content = @file_get_contents($link);
if($content===FALSE)
{
continue;
}
$result['domain'] = $link;
$result['time'] = sprintf("%01.3f",microtime(true)-$start);
$result['size'] = sprintf("%01.2f", strlen($content) / 1000);
$result['average'] = sprintf("%01.3f",$result['time'] / $result['size']);

$results[] = $result;
}

if($results)
{
echo "

“;
foreach($results as $k=>$r)
{
echo “

“;
}
echo “

# Domain name Size Load time (secs) Average speed per KB
“.($k+1).” $r[domain] $r[size] KB $r[time] $r[average]

“;
}
}
?>

This entry was posted in Web Tools and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Background Bottom Border
Background Top Border Background Middle Border Background Bottom Border
None :P None :P

Rendered template: single.php

127 SQL queries done. Page generation took 0.299 seconds.