How to test site speed?

I usually use the timer_stop() function via the WordPress ‘shutdown’ hook, like this:

// Grab the page load time upon WordPress shutdown.
function page_load_time() {

    echo '<p>Page load time: '.timer_stop(0, 5).' seconds.</p>';
}
add_action( 'shutdown', 'page_load_time' );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)