slanted W3C logo

Automatic Web performance measurement

Philippe Le Hégaret, W3C
for Radware

Automatic Web performance measurement

  1. Motivation
  2. Challenges
  3. Proposed Solution
  4. PLH's Open Questions

Motivation

Challenges

Radware Proposed Solution

  1. HTTP Header
  2. HTML content attribute
  3. Performance information
  4. Communication protocol

New HTTP Header

Performance_Reporting_Target: <URL for reporting>

If present, send the report at the given URL

HTML content attribute

Content attribute
perfcollect

The perfcollect is a boolean attribute that indicates if Navigation Timing (for <body> element) or Resource Timing performance information should automatically collected and reported.

For elements like <body>, <a>, <div>, <img>, <object>, <video>, <link>, etc.

Performance information

Cf the properties from the PerformanceResourceTiming interface (Resource Timing):

readonly attribute DOMHighResTimeStamp redirectStart;
readonly attribute DOMHighResTimeStamp redirectEnd;
readonly attribute DOMHighResTimeStamp fetchStart;
readonly attribute DOMHighResTimeStamp domainLookupStart;
readonly attribute DOMHighResTimeStamp domainLookupEnd;
[...]

Communication protocol

POST /enlighten/calais.asmx/Enlighten HTTP/1.1
Host: api.opencalais.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

resource=name_of_resource1
resourceURI=URI_of_resource1
redirectStart=timestamp
redirectEnd=timestamp
fetchStart=timestamp
[...]

resource=name_of_resource2
[...]

PLH's Open Questions