How does Google determine page speed?

How does Google determine page speed?

Today we have a question from the United Kingdom. This is DisgruntledGoat, who wants to know, how does Google determine page speed? In Google Webmaster Tools, some pages are listed as very slow– eight plus seconds. But I have tested on older computers and browsers....