Skip to content
Panel Newsletters Mail Account Choose a plan

Check Website Speed: PageSpeed, Lighthouse and curl (Tested)

Check Website Speed: PageSpeed, Lighthouse and curl (Tested)

To check website speed, open PageSpeed Insights: it shows real Chrome user data (if there is any) and a Lighthouse lab test. Run the lab test at least 3-5 times and look at the median, and measure the server itself separately with curl (TTFB). On our test bench a heavy image pushed mobile LCP from 1.5 s to 25.1 s, while a server 270 ms slower did not change the Lighthouse score at all: it only showed up in the TTFB line.

How we tested

RichHost test bench, an isolated container with 2 vCPU / 8 GB, Ubuntu 24.04, nginx 1.24, PHP 8.3-FPM with OPcache, MariaDB 10.11, WordPress 6.7.2 (Twenty Twenty-Five theme, 300 posts), 25 October 2026. Lighthouse 12.8.2 from npm in headless Chromium 141, mobile and desktop presets: 7 runs of the home page and 5 runs of a test page for each state. Requests stayed inside the container (127.0.0.1), so there is no real network: Lighthouse emulates the slow phone and mobile network itself. The “heavy plugin” is a deliberate imitation (150 extra SQL queries and a 250 ms wait), the page cache is nginx fastcgi_cache. TTFB was also measured with curl 8.5.0 (3 warm-up + 20 requests). These are lab numbers, not RichHost production figures.

Which tool to use: a decision table

Each tool answers its own question. The most common mistake is comparing a PageSpeed score with a GTmetrix score, or looking for a server problem in the overall score.

What you want to know Tool What it measures Limitation
Does the site pass Core Web Vitals for Google Search Console, Core Web Vitals report CrUX field data for groups of similar URLs, mobile and desktop separately Needs Chrome traffic; changes show up with a delay of up to 28 days
Quick check of one page PageSpeed Insights CrUX field data + one Lighthouse lab run A single run; the test runs from a Google data center, not from your audience’s city; small sites have no field data
Find the cause and verify a fix Lighthouse in Chrome DevTools or on the command line Lab FCP, LCP, TBT, CLS and a list of issues Depends on your computer and extensions; does not measure INP (needs real clicks)
Request waterfall, test from a specific country, several runs WebPageTest A real browser in the chosen location, filmstrip, repeat view Free access is limited in number of tests and settings
Report for a client, change history GTmetrix Lighthouse + waterfall and its own grade Location and device are limited on the free tier; the grade does not match PSI
Is the server to blame, not the front end curl DNS, connect, TLS, time to first byte No rendering or JavaScript; measures only from where it runs

Test from a location close to your audience. A new HTTPS request needs roughly three round trips before the first byte (TCP, TLS 1.3, the request itself). A rough calculation: at 30 ms latency (Ukraine to a server in Europe) that is about 90 ms, at 120 ms (a test from the USA to a server in Europe) it is already about 360 ms, with the same server.

Lab vs field data: what PageSpeed Insights shows

PageSpeed Insights shows two different data sets. The top block is Chrome UX Report (CrUX) field data: what real Chrome users experienced over the last 28 days, at the 75th percentile. The bottom block is one Lighthouse lab run on an emulated phone or desktop. Google Search uses the field Core Web Vitals; the 0-100 score is a diagnostic tool.

The “good” thresholds from web.dev (checked 25.10.2026, Web Vitals page): LCP up to 2.5 s, INP up to 200 ms, CLS up to 0.1, for 75% of page views, mobile and desktop separately. INP cannot be measured in the lab because there are no real clicks, so Lighthouse shows TBT as an indirect substitute.

Why a small site often shows “no data”: CrUX only collects statistics for public pages with enough visits from Chrome users who opted in to sharing usage statistics. If a page lacks data, PSI falls back to data for the whole origin; if the origin lacks it too, there is no field block (per the PSI documentation). For such a site, rely on several lab runs.

PSI has an API, and we tried calling it without a key from a browser on 25.10.2026 (runPagespeed?url=https://richhost.org/&strategy=mobile). The answer was not a result but a quota error:

HTTP 429
{
  "error": {
    "code": 429,
    "message": "Quota exceeded for quota metric 'Queries' and limit 'Queries per day'
                of service 'pagespeedonline.googleapis.com' ...",
    "status": "RESOURCE_EXHAUSTED"
  }
}

Without a key, requests share a common daily quota, so for regular checks create a free API key in Google Cloud and add &key=.... In the response, page field data is in loadingExperience, origin data in originLoadingExperience and the lab test in lighthouseResult.

How stable is the Lighthouse score: 7 runs in a row

We ran Lighthouse from the command line seven times in a row for each preset:

npm i lighthouse
export CHROME_PATH=/opt/pw-browsers/chromium-1194/chrome-linux/chrome   # Chromium path on the bench
for i in $(seq 1 7); do
  npx lighthouse http://127.0.0.1:8080/ --only-categories=performance --quiet \
    --chrome-flags="--headless=new --no-sandbox --disable-gpu" \
    --output=json --output-path=mobile_$i.json
done
# desktop: the same with --preset=desktop

# score, FCP, LCP, TBT, CLS, TTFB from each file
jq -r '[.categories.performance.score*100,
  (.audits["first-contentful-paint","largest-contentful-paint","total-blocking-time"].numericValue|round),
  (.audits["cumulative-layout-shift"].numericValue*1000|round/1000),
  (.audits["server-response-time"].numericValue|round)] | @tsv' mobile_*.json
Home page, 7 runs Score FCP LCP TBT CLS TTFB
Mobile, median 100 1.29 s 1.50 s 0 ms 0 58 ms
Mobile, min-max 100-100 1.26-1.52 s 1.50-1.52 s 0-12 ms 0 53-76 ms
Desktop, median 100 0.36 s 0.36 s 0 ms 0 66 ms
Desktop, min-max 100-100 0.36-0.41 s 0.36-0.42 s 0 ms 0 56-78 ms

Even on a quiet bench with no network, FCP varied by 20% between runs (1.26 vs 1.52 s) and TTFB by more than 40%, and in one of seven runs with the “heavy plugin” TBT suddenly jumped to 103 ms and the score dropped to 99. A real site over the internet adds network, ads and third-party scripts, so the spread is larger. Conclusion: one run proves nothing; compare the median of 3-5 runs of the same page from the same location.

What really changes the result: an image vs a slow server

Next we changed one thing at a time and repeated the runs. First we enabled the “heavy plugin”: home page TTFB rose from 58 to 327 ms (median). Then we added one hero image to the test page: a 3000×2000 JPEG of 4.7 MB, and then the same image as a 1200×800 WebP of 320 KB.

Chart: Lighthouse mobile LCP is 1.5 s without an image and with a 270 ms slower server, 3.3 s with a 320 KB WebP and 25.1 s with a 4.7 MB JPEG
Lighthouse 12.8.2, mobile preset, median of 5-7 runs on the RichHost test bench
State (median) Mobile: score / LCP Desktop: score / LCP TTFB
Home page, baseline 100 / 1.50 s 100 / 0.36 s 58 ms
Home page + heavy plugin 100 / 1.51 s 100 / 0.36 s 327 ms
Heavy plugin + page cache 100 / 1.50 s 100 / 0.36 s 1 ms
Test page without an image 100 / 1.50 s 100 / 0.37 s 56 ms
+ JPEG 3000 px, 4.7 MB 75 / 25.1 s 79 / 4.13 s 58 ms
+ WebP 1200 px, 320 KB 92 / 3.31 s 100 / 0.74 s 55 ms

Two lessons. First: extra megabytes on the emulated mobile connection (about 1.6 Mbit/s) cost seconds, so compressing and resizing images is the cheapest win. Second: the Lighthouse score did not notice a server 270 ms slower, even with real DevTools throttling (5 runs: LCP 1.55 s with the plugin vs 1.66 s without it, a difference smaller than the noise). The likely reason: the emulated mobile network itself adds hundreds of milliseconds per request, and server time gets lost in it. For real visitors on fast connections that time does not disappear, so judge the server by TTFB, not by the overall score. What to do about the issues you find is covered in our guide on how to speed up WordPress.

How to measure TTFB and request phases with curl

curl shows what the time to first byte is made of. Save the format to a file curl-format.txt:

   DNS lookup:  %{time_namelookup}s\n
  TCP connect:  %{time_connect}s\n
TLS handshake:  %{time_appconnect}s\n
   First byte:  %{time_starttransfer}s\n
        Total:  %{time_total}s\n
  HTTP %{http_code}, %{size_download} bytes, %{remote_ip}\n

and run curl -s -o /dev/null -w "@curl-format.txt" https://your-site/. For HTTPS on the bench we temporarily ran a TLS proxy in front of nginx with a self-signed certificate (hence -k):

$ curl -sk -o /dev/null -w "@curl-format.txt" https://localhost:8443/
   DNS lookup:  0.000017s
  TCP connect:  0.000090s
TLS handshake:  0.004532s
   First byte:  0.055805s
        Total:  0.056204s
  HTTP 200, 57004 bytes, 127.0.0.1

# the same page from the page cache
   DNS lookup:  0.000017s
  TCP connect:  0.000133s
TLS handshake:  0.003833s
   First byte:  0.005514s
        Total:  0.005567s

All values are cumulative from the start of the request. How to read them:

  • time_namelookup: DNS lookup. Hundreds of milliseconds here mean slow DNS hosting or no cache in the resolver. Almost zero on the bench because it is localhost.
  • time_connect: the TCP connection, roughly one network round trip to the server. A large value means a distant server or a congested link.
  • time_appconnect: the TLS handshake is done (0 for plain HTTP). The difference from connect is the cost of HTTPS: 4.5 ms for us without a network.
  • time_starttransfer: the first byte (TTFB). The difference from appconnect is almost pure server time: 51 ms without cache and about 2 ms with cache for us (the proxy added the rest).
  • time_total: the full HTML download. A large gap after TTFB means a heavy page or a slow link.

One request proves nothing either, so run a series and take the median:

for i in $(seq 1 20); do curl -s -o /dev/null -w "%{time_starttransfer}\n" http://127.0.0.1:8080/; done | sort -n

# summary from our script: 3 warm-up + 20 requests per state
base no-cache    | n=20 min=48.0  med=57.7  max=66.3 ms
base page-cache  | n=20 min=0.2   med=0.3   max=0.6 ms
heavy no-cache   | n=20 min=310.0 med=319.6 max=330.4 ms
heavy page-cache | n=20 min=0.2   med=0.3   max=4.5 ms

The page cache removed both the baseline 58 ms and the 320 ms of the “heavy plugin” for anonymous visitors. How caching works on hosting is explained in our article on cache and RAM on hosting, and server-side tuning in the guide to server configuration. curl will not show behaviour under concurrent requests: that needs a load test with a small number of threads.

Why you should not trust a single test or someone else’s benchmark

Synthetic hardware tests such as Geekbench, sysbench or fio show CPU and disk power, not the speed of a specific page: that depends on caching, database queries, image weight and distance to the visitor. A screenshot of “100 points” proves little as well: we got 100 both for a server with 58 ms TTFB and for one with 327 ms. A fair comparison of hosting or of an optimization looks like this: the same page, the same location and preset, 5+ runs, median and spread, plus TTFB with curl separately. Read other people’s benchmarks the same way: look for the method, the number of runs and the test location.

If TTFB is poor even for a cached page, the bottleneck is the server or the distance to it. RichHost shared hosting runs on NVMe disks with servers in Europe and the USA, so you can place the site closer to your audience; prices are on the RichHost hosting plans page.

FAQ

How many times should I run PageSpeed Insights?

At least 3-5 times, then take the median. Even on our isolated bench FCP differed by 20% between runs.

Why does PageSpeed say there is no real-user data?

CrUX has too few Chrome page views for your page and origin. This is normal for a new or small site; use lab tests instead.

The score is 100 but the site is slow. How?

A lab test can miss a slow server, as in our test with 327 ms TTFB. Check TTFB with curl and field data in Search Console, and set up hosting monitoring for ongoing control.

Can speed tests hurt my site?

A single PSI or curl run cannot. Run load tests only against your own site, with few threads and outside peak hours.

More on this topic

All articles
How to Fix Mixed Content After Switching to HTTPS
Hosting Performance17.11.2026

How to Fix Mixed Content After Switching to HTTPS

Tested in Chromium 141: http:// images get upgraded to HTTPS, while stylesheets, scripts and iframes are blocked. Real wp search-replace output, the…

Cloudflare Setup Guide: DNS, SSL, Caching and Bot Protection
Domains and DNS16.11.2026

Cloudflare Setup Guide: DNS, SSL, Caching and Bot Protection

Cloudflare setup on the Free plan, tested on a bench: the Flexible loop in WordPress, SSL modes Off, Flexible, Full and Full…

SPF, DKIM and DMARC Setup: Step-by-Step Guide for Your Domain
Domains and DNS25.09.2026

SPF, DKIM and DMARC Setup: Step-by-Step Guide for Your Domain

A practical SPF, DKIM and DMARC setup guide: the DNS records to add for hosting mail, Google Workspace and Microsoft 365, how…