Skip to content

All logged timings are incorrect, and some other data too. #19

Closed
@Fleshgrinder

Description

Just compare a HAR exported with Chrome with a HAR exported with chrome-har-capturer and you are going to notice huge differences. The following diff shall illustrate that (omitted some parts for brevity). One issue I can directly point you to is here where you add the SSL/TLS time to the total time. This is wrong because, as per HAR specification, the connect time already includes the SSL/TLS time. There are many more differences between the files.

I am afraid that any logs created with this tool are incorrect and you should warn your users about this until the issue is fixed.

--- chrome-capturer.har Wed May 27 10:25:13 2015
+++ chrome.har  Wed May 27 10:25:07 2015
@@ -1,21 +1,21 @@
 […]
-"time": 243.0489062498805,
+"time": 64.56995010375977,
 "request": {
     "method": "GET",
     "url": "https://apis.google.com/_/scs/abc-static/_/js/k=gapi.gapi.en.dPxK-DAj_pE.O/m=gapi_iframes,googleapis_client,plusone/rt=j/sv=1/d=1/ed=1/am=AAQ/rs=AItRSTN0fuoBkyFaoHWfzWWLct0BxZgQSQ/cb=gapi.loaded_0",
-    "httpVersion": "HTTP/1.1",
+    "httpVersion": "unknown",
 […]
 "response": {
     "status": 200,
     "statusText": "OK",
-    "httpVersion": "HTTP/1.1",
+    "httpVersion": "unknown",
 […]
 "timings": {
-    "blocked": -1,
-    "dns": 0.654000000054114,
-    "connect": 53.30499999990936,
-    "send": 1.0790000000042994,
-    "wait": 112.32899999993191,
-    "receive": 36.00390625,
-    "ssl": 39.677999999980806
+    "blocked": 0.974000000041997,
+    "dns": -1,
+    "connect": -1,
+    "send": 0.570000000038813,
+    "wait": 30.76099999998409,
+    "receive": 32.264950103694865,
+    "ssl": -1
 […]

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions