zachleat / performance-leaderboard

A plugin to run Lighthouse against a set of urls to see which site is the fastest.
97 stars 12 forks source link

Report lighthouse version in results #3

Closed zachleat closed 4 years ago

zachleat commented 4 years ago

Top level lighthouseVersion in lighthouse results.

nucliweb commented 4 years ago

Hi @zachleat, great tool 🤘🏼

Do you want add the lighthouseVersion just on the result, like this?

{
    url: 'https://www.11ty.dev/',
    finalUrl: 'https://www.11ty.dev/',
    lighthouseVersion: '5.6.0',  👈🏼
    lighthouseScore: 0.99,
    accessibilityScore: 1,
    firstContentfulPaint: 1626.619,
    firstMeaningfulPaint: 1626.619,
    speedIndex: 1626.619,
    diagnostics: {
      numRequests: 23,
      numScripts: 1,
      numStylesheets: 1,
      numFonts: 2,
      numTasks: 392,
      numTasksOver10ms: 5,
      numTasksOver25ms: 2,
      numTasksOver50ms: 1,
      numTasksOver100ms: 1,
      numTasksOver500ms: 0,
      rtt: 18.534,
      throughput: 7593994.189649049,
      maxRtt: 41.256,
      maxServerLatency: 5.7309999999999945,
      totalByteWeight: 83820,
      totalTaskTime: 317.8929999999997,
      mainDocumentTransferSize: 25548
    },
    rank: 1,
    performanceRank: 1,
    accessibilityRank: 1,
    axe: { passes: 667, violations: 0 }
  }

I can send you a PR 😊

zachleat commented 4 years ago

This shipped https://github.com/zachleat/performance-leaderboard/blob/master/src/ResultLogger.js#L146