performance - ChromeDriver - 网络性能日志记录 : Understanding timing section of Network. 响应已接收

标签 performance logging selenium-chromedriver timing

我正在尝试了解网络性能日志消息的计时部分中的属性之间的关系。

设置:我正在运行带有网络性能日志记录的 ChromeDriver。我正在提取日志消息(Selenium - Java)。 以下是示例日志消息和我迄今为止的理解。

message => params => response => timing
{
    "requestTime": 126550.470936,          : Time in sec when the browser knows the call has to be issued?
    "proxyStart": 1.77299999631941,        : Is this a relative time in ms from requestTime? What this latency accounts for?
    "proxyEnd": 3.25700000394136,          : Time taken to resolve the proxy in ms?
    "dnsStart": -1,                        :  
    "dnsEnd": -1,                          : Time taken to resolve the dns?
    "connectStart": -1,                    :
    "connectEnd": -1,                      : Time taken to establish the connection with remote server? 
    "sslStart": -1,                        :
    "sslEnd": -1,                            : Is this part of "connect" section? (time taken to negotiate SSL handshake?)
    "workerStart": -1                      :
    "workerReady": -1,                     : 
    "sendStart": 582.229000006919,         : 
    "sendEnd": 582.65900000697,            : Time taken to send the request to server?
  "pushEnd": 0,                          :
    "pushStart": 0,                        : Unclear as what this accounts for.
    "receiveHeadersEnd": 1218.61900000658  : Time taken to completely receive the header?
}

我试图从上面的时间分割中理解以下部分。

  • 浏览器发出请求所花费的时间(典型的排队延迟 在网络选项卡中可见)。
  • 浏览器建立连接和发送请​​求所花费的时间
  • 服务器处理请求所花费的时间
  • 收到回复所需的时间。

对此的任何指示都会很棒。

最佳答案

这是我的理解

延迟receiveHeadersEnd

代理时间proxyEnd - proxyStart

发送时间sendEnd - sendStart

等待时间receiveHeadersEnd - sendEnd

请引用: https://groups.google.com/forum/#!topic/google-chrome-developer-tools/cuIpVMC1C4U

关于performance - ChromeDriver - 网络性能日志记录 : Understanding timing section of Network. 响应已接收,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39679673/

相关文章:

logging - Azure 网站和企业库日志记录

php - 通过带有客户端身份验证的 SSL 进行 curl

python - mysql服务器的CPU亲和性

c# - 测量代码使用的内存

apache - 在 Ec2 上使用 Apache Proxy 部署 NodeJS(错误?)并记录日志

java - 无法使用 Selenium ChromeDriver SerenityBDD 设置默认下载路径

java - 使用 QAF 自动化框架在 application.properties 文件中设置 chrome 功能不起作用

python - 提高数组操作的性能

asp.net - 测量页面性能

linux - 从 Jenkins 或 Linux 控制台运行时 Chromedriver 失败