Panduan Google Lighthouse

What Google Lighthouse adalah, how performa score adalah calculated, why ini varies, dan why ini adalah data lab — not sebuah sinyal peringkat. dengan metric weights dan color bands.

Pertama kali diterbitkan: 26 Jun 2026 · Terakhir diperbarui: 3 Agu 2026 · Advanced
Bahasa

Lighthouse adalah Google's open-source alat itu audits sebuah halaman di simulated lab conditions dan scores ini 0–100 di seluruh performa, Accessibility, Best Practices, dan SEO. performa score adalah sebuah weighted average dari five lab metrics (TBT 30%, LCP 25%, CLS 25%, FCP 10%, Speed indeks 10%). ini adalah data lab, not data lapangan — so ini adalah not Core Web Vitals sinyal peringkat, ini dapat't mengukur INP cara field melakukan, dan ini varies run-untuk-run. ini powers lab bagian dari PageSpeed Insights; PSI menambahkan CrUX data lapangan pada top. sebuah 100 doesn't buy Anda rankings.

TL;DR — Lighthouse adalah sebuah open-source, automated alat itu audits sebuah halaman di lab conditions (simulated Slow 4G + 4× CPU throttle) dan scores performa, Accessibility, Best Practices, dan SEO — PWA adalah dropped di Lighthouse 12. performa score adalah sebuah weighted average dari five lab metrics: TBT 30%, LCP 25%, CLS 25%, FCP 10%, Speed indeks 10%. Bands: 0–49 red, 50–89 orange, 90–100 green. ini adalah data lab, so ini adalah not Core Web Vitals sinyal peringkat, ini dapat’t mengukur INP cara field melakukan (ini menggunakan TBT sebagai sebuah proxy), dan ini varies run-untuk-run. ini powers lab half dari PageSpeed Insights; PSI menambahkan CrUX data lapangan pada top. sebuah 100 doesn’t buy rankings.

What Lighthouse actually adalah

Google’s own one-liner adalah cleanest definition: “Lighthouse is an open-source, automated tool to help you improve the quality of web pages.” (terjemahan) “Lighthouse adalah sebuah open-source, automated alat untuk help Anda meningkatkan quality dari halaman web.” mechanics adalah hanya sebagai sederhana — “give Lighthouse a URL to audit, it runs a series of audits against the page, and then it generates a report on how well the page performed.” (terjemahan) “give Lighthouse sebuah URL untuk audit, ini runs sebuah series dari audits terhadap halaman, dan lalu ini generates sebuah report pada how well halaman performed.”

ini scores four categories today: performa, Accessibility, Best Practices, dan SEO. jika Anda’ve read older guides itu say five, mereka’re out dari date — PWA category adalah dihapus di Lighthouse 12 (sekitar 2024), following Chrome’s updated installability criteria. So jika sebuah blog post adalah masih citing sebuah PWA score, itu’s Anda tell ini predates saat ini versi.

crucial framing adalah one kata: lab. Lighthouse memuat Anda halaman di sebuah controlled, simulated environment, not dari Anda nyata pengunjung. itu single fact menjelaskan almost setiap piece dari confusion people memiliki tentang ini.

Evidence for this claim Lighthouse is an open-source automated auditing tool that evaluates pages in controlled lab conditions. Scope: Chrome Developers overview of Lighthouse and its audit workflow. Confidence: high · Verified: Chrome Developers: Lighthouse overview

How Lighthouse berfungsi — lab conditions

oleh default Lighthouse menggunakan simulated throttling, dan ini throttles aggressively. defaults emulate roughly sebuah mid-tier perangkat seluler pada sebuah Slow 4G connection:

  • Network: mobile Slow 4G preset — tentang 150 ms latency dan 1,6 Mbps down / 750 Kbps up. Google describes ini sebagai emulating “the ~85th percentile mobile connection speed even when run on much faster fiber connections.” (terjemahan) “ ~85th percentile mobile connection speed bahkan when run pada much faster fiber connections.”
  • CPU: sebuah constant 4× CPU multiplier, simulating sebuah mid-tier phone’s processor pada Anda faster desktop hardware.

ini adalah oleh design. Lighthouse isn’t trying untuk tell Anda “this is how fast your site is for everyone.” (terjemahan) “ini adalah how fast Anda situs adalah untuk everyone.” ini adalah stress-testing halaman terhadap sebuah slower-daripada-average cohort so masalah surface itu Anda fast laptop hides. ini adalah why sebuah situs itu feels instant untuk Anda dapat score 60 — Anda’re sebuah tinggi-performa MacBook pada fiber; test adalah sebuah budget Android pada sebuah so-so network.

One nuance worth keeping straight: simulated throttling ( default) isn’t sama sebagai DevTools / applied throttling. Simulated throttling models how halaman akan memiliki dimuat di bawah itu conditions berdasarkan sebuah initial unthrottled observation — Google notes ini approach adalah “both very fast and deterministic.” (terjemahan) “both very fast dan deterministic.” DevTools-style throttling actually slows down permintaan, which Google says adalah “not a sufficient model of a slow connection.” (terjemahan) “not sebuah sufficient model dari sebuah slow connection.” untuk repeatable pengukuran, default simulated mode adalah preferred.

performa score — how ini adalah calculated

performa score adalah “a weighted average of the metric scores.” (terjemahan) “sebuah weighted average dari metric scores.” ini weights adalah set di Lighthouse 10 dan remain saat ini published table. Lighthouse 13 (rolled out 2026) says so explicitly: ini consolidated sebuah set dari non-scoring performa audits ke shared “Insights” (terjemahan) “Insights” juga digunakan oleh DevTools performa panel, tetapi states ada “no changes to the performance scoring” (terjemahan) “no perubahan untuk performa scoring” di itu release — scoring adalah berdasarkan metrics below, not audit names, dan itu didn’t move. Five metrics membuat up score:

MetricWeight
Total Blocking Time (TBT)30%
Largest Contentful Paint (LCP)25%
Cumulative Layout Shift (CLS)25%
pertama Contentful Paint (FCP)10%
Speed indeks10%
Evidence for this claim Lighthouse performance scores are weighted from lab metrics; 90–100 is good, 50–89 needs improvement, and 0–49 is poor. Scope: Current published Lighthouse performance-scoring model; metric weights can change by Lighthouse version. Confidence: high · Verified: Chrome Developers: Performance scoring

sebuah few things untuk internalize here:

  • TBT carries paling weight (30%). ini adalah lab proxy untuk responsiveness. pertama Input Delay (FID) adalah hilang, dan so adalah older metrics like Time untuk Interactive dan pertama Meaningful Paint — mereka’ve telah retired.
  • Speed indeks adalah sebuah Lighthouse metric, not sebuah Core Web Vital. ini masih counts untuk 10% dari Lighthouse performa score bahkan though ini isn’t one dari Google’s peringkat-relevant CWV.
  • setiap metric adalah scored terhadap sebuah curve, not sebuah fixed cutoff. Lighthouse takes raw nilai (biasanya di milliseconds) dan maps ini onto sebuah log-normal distribution dibangun dari dunia nyata HTTP Archive data. Google’s control poin: 25th percentile dari itu data lands di sebuah score dari 50, dan 8th percentile lands di 90. So sebuah 90+ berarti Anda’re roughly di top ~8% dari halaman pada itu metric — which adalah why last few poin adalah so hard untuk win.
  • hanya metric scores move angka. Opportunities dan Diagnostics bagian dari report adalah guidance — mereka tell Anda what untuk fix — tetapi mereka don’t directly perubahan performa score. Fixing them improves metrics, dan metrics move score.

Why Anda score perubahan antara runs

ini adalah complaint I hear sebagian besar: “I ran it twice and got 84 then 91 — is it broken?” (terjemahan) “I ran ini twice dan got 84 lalu 91 — adalah ini broken?” No. Google adalah explicit: “A lot of the variability in your overall Performance score and metric values is not due to Lighthouse.” (terjemahan) “sebuah lot dari variability di Anda overall performa score dan metric nilai adalah not karena Lighthouse.” When angka jumps, ini adalah biasanya underlying conditions shifting:

  • sebuah/B tests atau berbeda ads menjadi disajikan pada setiap muat
  • Internet routing perubahan — both Anda local network dan longer cross-region path sebuah permintaan takes
  • server web itself responding di inconsistent speeds
  • Testing pada berbeda hardware (sebuah fast desktop vs. sebuah tired laptop) — CPU throttling adalah relative untuk host machine, so sebuah “4×” (terjemahan) “4×” multiplier berarti something berbeda pada sebuah fast machine daripada sebuah slow one
  • browser extensions itu inject JavaScript atau extra network permintaan
  • Antivirus software atau lainnya background processes competing untuk resources

misalnya: run yang sama URL twice dan one pass happens untuk muat sebuah heavier ad creative atau catches sebuah slower server respons — itu run’s audits reflect itu one muat, not sebuah defect Anda introduced. Treat ini sebagai sebuah single sample, not sebuah verdict.

right mental model, straight dari docs, adalah untuk treat performa sebagai sebuah distribution dari scores, alih-alih sebuah single angka. Run ini sebuah few times — ideally di sebuah incognito window dengan extensions off, pada matched hardware dan network conditions — dan lihat range atau median, not one hasil. When Anda perlu compare runs later, note Lighthouse versi, run mode, dan throttling metode alongside score; sebuah score dari sebuah berbeda versi atau configuration isn’t sebuah like-untuk-like comparison, bahkan jika angka looks similar.

cara run Lighthouse responsibly

gunakan Lighthouse sebagai sebuah controlled diagnostic, not sebuah one-click verdict:

  1. Test exact deployed URL, not sebuah berbeda template atau sebuah unpublished local bangun.
  2. Match device profile, throttling metode, Lighthouse versi, cache state, authentication, consent state, dan test geography untuk setiap comparison.
  3. Start setiap run dengan sebuah fresh navigation. Resizing sebuah sudah-dimuat desktop halaman ke sebuah mobile viewport melakukan not reproduce sebuah mobile navigation, permintaan sequence, atau server respons.
  4. Run setidaknya three times. Report median sebagai headline hasil dan retain individual runs, range, timestamps, warnings, dan traces so sebuah outlier adalah terlihat alih-alih silently discarded.
  5. Compare sebelum dan setelah di bawah yang sama conditions. jika test service runs dari lainnya region, record ini: ditambahkan network distance atau sebuah berbeda CDN edge dapat perubahan server dan memuat timings without sebuah code perubahan.
  6. periksa CrUX separately sebelum membuat sebuah nyata-pengguna claim. sebuah better lab median mendukung “ini perubahan ditingkatkan ini controlled test,” not “pengguna now pass Core Web Vitals.”

evidence mendukung berbeda conclusions:

EvidenceWhat ini dapat mendukungWhat ini cannot mendukung oleh itself
One Lighthouse runsebuah reproducible defect atau trace worth investigatingsebuah stable performa score atau nyata-pengguna outcome
Median dari matched runssebuah lab regression atau improvement di bawah itu conditionssebuah field Core Web Vitals pass
URL-tingkat CrUXeligible nyata-pengguna sample attributed untuk itu URLsetiap pengguna, geography, atau visit
Origin-tingkat CrUXsebuah origin-wide field signal when URL data adalah unavailableperforma dari tested URL specifically
No CrUX datafield sample adalah unavailable atau insufficientsebuah pass, sebuah failure, atau proof itu nobody visits

ini mengikuti Lighthouse’s own distribution-based model untuk score variability dan mempertahankan lab/field distinction intact. Evidence for this claim Lighthouse performance scores are weighted from lab metrics; 90–100 is good, 50–89 needs improvement, and 0–49 is poor. Scope: Current published Lighthouse performance-scoring model; metric weights can change by Lighthouse version. Confidence: high · Verified: Chrome Developers: Performance scoring

Lighthouse vs. PageSpeed Insights — distinction itu penting

ini get conflated constantly, so menjadi precise:

  • Lighthouse adalah mesin. ini produces data lab — performa, Accessibility, Best Practices, dan SEO scores.
  • PageSpeed Insights adalah sebuah web UI itu runs Lighthouse dan menambahkan Chrome UX Report (CrUX) data lapangan — nyata Core Web Vitals dari anonymized pengguna nyata, ditampilkan when there’s enough data untuk URL atau origin.

So di PSI Anda’re looking di two berbeda datasets side oleh side. “field data” (terjemahan) “data lapangan” bagian di top (pengguna nyata, dari CrUX) adalah separate dari Lighthouse “lab data” (terjemahan) “lab data” bagian below ini — dan mereka frequently disagree. When someone says “my PageSpeed Insights score,” (terjemahan) “my PageSpeed Insights score,” mereka almost selalu berarti Lighthouse performa score, not data lapangan.

Lighthouse dan Core Web Vitals — how mereka relate

Lighthouse measures beberapa Core Web Vitals di lab: ini reports LCP dan CLS sebagai lab metrics. tetapi there’s sebuah hard limit:

Lighthouse dapat’t mengukur INP cara field melakukan. Interaction untuk Next Paint perlu nyata pengguna interactions untuk mengukur — there’s no nyata pengguna clicking sekitar di sebuah lab run. So Lighthouse menggunakan Total Blocking Time sebagai sebuah lab proxy untuk responsiveness. TBT correlates dengan INP, tetapi sebuah passing TBT melakukan not guarantee sebuah passing INP untuk pengguna nyata. mereka’re related, not yang sama.

ini adalah heart dari lab-vs-field gap. data lapangan — dari CrUX, surfaced di Search Console dan top dari PageSpeed Insights — adalah what reflects pengguna nyata dan what feeds Google’s pengalaman halaman signals. Lighthouse data lab adalah untuk debugging dan catching regressions sebelum Anda ship. Google’s own guidance adalah untuk “prioritize field data for understanding real-world user experiences” (terjemahan) “prioritize data lapangan untuk understanding dunia nyata pengguna experiences” dan gunakan “lab data for debugging, testing features before deployment.” (terjemahan) “data lab untuk debugging, testing fitur sebelum deployment.”

Where untuk run ini

sama mesin, berbeda surfaces:

  • Chrome DevTools — dibangun ke browser ( Lighthouse panel). Best untuk halaman behind sebuah login, since Anda dapat audit authenticated halaman.
  • PageSpeed Insights — no-install web UI di pagespeed.web.dev; runs Lighthouse dan menambahkan CrUX data lapangan.
  • CLInpm install -g lighthouse, lalu lighthouse <url>; scriptable.
  • Node module — import ini programmatically ke Anda own tooling dan CI.
  • Lighthouse CI — official setup untuk catching performa regressions pada setiap deploy. workflow adalah collect → assert → upload: collect runs Lighthouse multiple times terhadap sebuah URL (three runs oleh default) dan takes median report alih-alih trusting one pass; assert memeriksa itu report terhadap thresholds Anda configure — atur ke warn atau error per category atau metric; upload stores report so Anda dapat track trend lines di atas membangun. Treat thresholds sebagai Anda team’s regression policy, not sebuah field-data verdict atau sebuah peringkat guarantee — mereka’re catching “this got worse,” (terjemahan) “ini got worse,” not certifying “this is fast for users.” (terjemahan) “ini adalah fast untuk pengguna.”
  • Chrome extension — exists, tetapi DevTools adalah recommended di-browser path.

CLI dan Node workflows perlu sebuah local install dari Chrome untuk drive.

myths worth busting

  • “A 100 Lighthouse score = top rankings.” (terjemahan) “sebuah 100 Lighthouse score = top rankings.” No. performa score adalah lab data; ini isn’t sebuah sinyal peringkat. Google’s pengalaman halaman signals gunakan Core Web Vitals data lapangan (CrUX), dan bahkan itu adalah one lightweight signal among banyak — relevance dan konten quality dominate. Aim untuk sebuah strong score because ini adalah baik untuk pengguna, not because ini adalah sebuah rankings lever.
  • “Lighthouse = field data / what real users experience.” (terjemahan) “Lighthouse = data lapangan / what pengguna nyata experience.” No. ini adalah throttled lab conditions worse daripada sebagian besar pengguna nyata see. pengguna nyata memiliki warm caches, bfcache, dan varying devices. Lighthouse adalah sebuah worst-case-ish stress test, not sebuah average-pengguna readout.
  • “PageSpeed Insights is Lighthouse.” (terjemahan) “PageSpeed Insights adalah Lighthouse.” Partly. PSI runs Lighthouse untuk lab bagian dan menambahkan CrUX untuk field bagian. field angka — ones tied untuk pengalaman halaman — adalah CrUX, not Lighthouse.
  • “The PWA category still counts.” (terjemahan) “ PWA category masih counts.” ini doesn’t. PWA adalah dihapus sebagai sebuah scored category di Lighthouse 12.

Bottom line

Lighthouse adalah one dari paling berguna free alat di SEO teknis dan web performa — sebuah fast, repeatable cara untuk temukan what’s slowing sebuah halaman down dan untuk guard terhadap regressions di CI. hanya hold ini di right altitude: ini adalah sebuah lab diagnostic, not sebuah verdict pada nyata-pengguna experience dan not sebuah peringkat score. gunakan ini untuk temukan dan fix; gunakan data lapangan (CrUX, Core Web Vitals di Search Console) untuk judge whether pengguna nyata adalah actually having sebuah baik time.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.