Added by sonik on 16-05-2017 and keywords: remote, page, load, time, miliseconds, terminal, shell, linux, php [
Print Article ]
Linux: How to get remote page load time with a command from the terminal?
This will give you the remote page load time in miliseconds.
time wget -p http://www.webleit.info >/dev/null 2>&1
You can implement the command with php like:
<?php
$output = shell_exec('time wget -p http://www.webleit.info >/dev/null 2>&1');
echo "<pre>$output</pre>";
?>