sitespeedio / chrome-har

Create HAR files from Chrome Debugging Protocol data
MIT License
148 stars 50 forks source link

discrepancies in Har generated from browsertime and Chorme DevTools #84

Open umeshPathak opened 3 years ago

umeshPathak commented 3 years ago

There are discrepancies in the har generated from browsertime and the one from Chrome Dev tools

Find attached the two har files run on https://www.infosys.com

I have used below commands to generate the HAR using browsertime

browsertime https://www.infosys.com --chrome.chromedriverPath D:\programs\chromedriver_win32\89.0.4389.23\chromedriver.exe --iterations 1 --headless --browser chrome --chrome.includeResponseBodies all

My chrome browser version is 89.0.4389.114 and the compatible chrome driver I used is of version 89.0.4389.23

Chrome DevTools HAR has total 143 Http Requets whereas in btime har has only 137 http requests captured.

hars.zip

soulgalore commented 3 years ago

Hi @umeshPathak it is hard to compare:

  1. You need to make sure you test the exact same way (end the tests)
  2. Don't compare headless vs non headless
  3. 3rd party content delivers different on different times. When I diff the HAR files I could see that these are the ones extra: Screenshot 2021-04-03 at 07 50 59