Join the community today
Become a Member

WebPerf PageSpeed Your site's Google PageSpeed Insights result?

Discussion in 'Web Development & Web Performance' started by rdan, Jul 2, 2018.

  1. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:31 PM
    Mainline
    10.2
    With CentminMod Forum: PageSpeed Insights
    upload_2018-7-2_17-49-20.png


    I'll share my Forum's result also (without Argo enabled).

    upload_2018-7-2_17-48-14.png

    upload_2018-7-2_17-48-29.png

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Awesome looks like this low traffic forum made it into Chrome User Experience Reported data now :D

    FYI, as the pagespeed data is derived from Chrome User Experience Reported, that means results are relative to the speed of page loads for a site's visitors and relative to the visitors geographical location to your site.

    So if your site server is located in USA East Coast and 99% of visitors to your site reside in USA East Coast, you would have results that are much faster than if your is located in USA East Coast and 99% of visitors reside in Malaysia.
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just whipped up a quick script to use Google PageSpeed Insight API to test domains centminmod/google-insights-api-tools :)

    Slack channel support

    google-pagespeed-insight-api-gitool-slack-01.png

    Desktop

    google-pagespeed-insight-api-gitool-desktop-01b.png

    Code (Text):
    ./gitools.sh desktop https://www.google.com origin
    
    --------------------------------------------------------------------------------
    curl -4s https://www.googleapis.com/pagespeedonline/v4/runPagespeed?url=origin%3Ahttps%3A%2F%2Fwww.google.com%2F&screenshot=false&snapshots=false&strategy=desktop&fields=loadingExperience(initial_url%2Cmetrics%2Coverall_category)&key=YOUR_GOOGLE_API_KEY
    {
     "loadingExperience": {
      "metrics": {
       "FIRST_CONTENTFUL_PAINT_MS": {
        "median": 409,
        "distributions": [
         {
          "min": 0,
          "max": 984,
          "proportion": 0.8454713690354932
         },
         {
          "min": 984,
          "max": 2073,
          "proportion": 0.10403871224107414
         },
         {
          "min": 2073,
          "proportion": 0.0504899187234326
         }
        ],
        "category": "FAST"
       },
       "DOM_CONTENT_LOADED_EVENT_FIRED_MS": {
        "median": 872,
        "distributions": [
         {
          "min": 0,
          "max": 1366,
          "proportion": 0.806970519946481
         },
         {
          "min": 1366,
          "max": 2787,
          "proportion": 0.1438260280157439
         },
         {
          "min": 2787,
          "proportion": 0.04920345203777508
         }
        ],
        "category": "FAST"
       }
      },
      "overall_category": "FAST",
      "initial_url": "https://www.google.com/"
     }
    }
    

    Code (Text):
    https://www.google.com FCP median: 409 ms DCL median: 872 ms
    Page Load Distributions
    84.50 % loads for this page have a fast FCP (less than 984 milliseconds)
    10.40 % loads for this page have an average FCP (less than 2073 milliseconds)
    5.00 % loads for this page have an slow FCP (over 2073 milliseconds)
    80.70 % loads for this page have a fast FCP (less than 1366 milliseconds)
    14.40 % loads for this page have an average FCP (less than 2787 milliseconds)
    4.90 % loads for this page have an slow FCP (over 2787 milliseconds)
    

    Mobile

    google-pagespeed-insight-api-gitool-mobile-01b.png

    Code (Text):
    ./gitools.sh mobile https://www.google.com origin
    
    --------------------------------------------------------------------------------
    curl -4s https://www.googleapis.com/pagespeedonline/v4/runPagespeed?url=origin%3Ahttps%3A%2F%2Fwww.google.com%2F&screenshot=false&snapshots=false&strategy=mobile&fields=loadingExperience(initial_url%2Cmetrics%2Coverall_category)&key=YOUR_GOOGLE_API_KEY
    {
     "loadingExperience": {
      "metrics": {
       "FIRST_CONTENTFUL_PAINT_MS": {
        "median": 469,
        "distributions": [
         {
          "min": 0,
          "max": 1567,
          "proportion": 0.9132962514832138
         },
         {
          "min": 1567,
          "max": 2963,
          "proportion": 0.05335475928893682
         },
         {
          "min": 2963,
          "proportion": 0.03334898922784932
         }
        ],
        "category": "FAST"
       },
       "DOM_CONTENT_LOADED_EVENT_FIRED_MS": {
        "median": 883,
        "distributions": [
         {
          "min": 0,
          "max": 2120,
          "proportion": 0.9154626026722679
         },
         {
          "min": 2120,
          "max": 4226,
          "proportion": 0.05745611798106648
         },
         {
          "min": 4226,
          "proportion": 0.027081279346665484
         }
        ],
        "category": "FAST"
       }
      },
      "overall_category": "FAST",
      "initial_url": "https://www.google.com/"
     }
    }
    

    Code (Text):
    https://www.google.com FCP median: 469 ms DCL median: 883 ms
    Page Load Distributions
    91.30 % loads for this page have a fast FCP (less than 1567 milliseconds)
    5.30 % loads for this page have an average FCP (less than 2963 milliseconds)
    3.30 % loads for this page have an slow FCP (over 2963 milliseconds)
    91.50 % loads for this page have a fast DCL (less than 2120 milliseconds)
    5.70 % loads for this page have an average DCL (less than 4226 milliseconds)
    2.70 % loads for this page have an slow DCL (over 4226 milliseconds)
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    FYI as Google PageSpeed Insights' Origin stats are derived from Chrome User Experience Report data (Crux) and from real Chrome users who opt into sharing stats, you can in theory use your Google Analytics site page speed metrics to get an approximation of at least your Document Contented Loaded numbers. You just need to filter them just for Chrome browser and add Desktop & Mobile segmentation to the reports. I also broke down the stats by continent so geographic profiles for the metrics can be visualised :)

    Google PageSpeed Insights' Origin stats are updated daily but they're based on an average of 1 month AFAIK.

    This is an example for this forum which recently switched to using Cloudflare (mid-May 2018). Posting June 2018 and so far in July 2018 numbers. Naturally, forum being hosted in Linode Fremont, California would lend itself to being fastest in Americas continent.

    June 2018

    ga-crux-chrome-june2018-01.png
    ga-crux-chrome-june2018-02.png

    July 2018

    ga-crux-chrome-july2018-01.png
    ga-crux-chrome-july2018-02.png

    Then you can use Google Analytics to breakdown your average document content loaded times by countries in general filtering on avg document content loaded times that are greater than 2.12s, between 2.12s and 4.22s and greater than 4.22s which are cut offs that represent fast, average and slow Google PageSpeed Insight ratings for mobile at least. Unable to filter on Chrome browser so results include other browsers though. But still gives insights as to which visitor countries are pulling down your averages for DCL times.

    >2.12s - countries which are negatively affecting a fast rating for DCL

    ga-top5-dcl-slower-than-2120ms-01.png

    between 2.12s and 4.22s

    ga-top5-dcl-slower-than-4220ms-01.png

    >4.22s

    ga-top5-dcl-slower-than-4220ms-02.png

    For this forum, top 5 countries which negatively affecting a fast rating for DCL are India, China, Germany, Indonesia and Russia !

    Then check out WPT for Mumbia, India on 3G mobile speed with emulated Motorola G4 mobile and yes indeed slow

    upload_2018-7-5_4-14-48.png

    Google Lighthouse metrics

    upload_2018-7-5_4-16-25.png
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Been a while since I checked this forum's speed :D

    google-pagespeed-insights-cmm-forum-index-051118-01.png