Sensor Performance

Sensor Load

The Sensor size that is injected into the customer's website is approximately ~75KB. The size can vary depending on customer's configuration.

Performance impacts of the Sensor workflow

  • Initialize - The Sensor only hooks the javascript function it needs during initialization, so it has a small impact.
  • Synchronized Processing - Process only the required data (which may become invalid later).
  • A synchronized Processing - Finish the processing of the rest of the data.
  • Network - To reduce the number of network reports, the Sensor collects reports in a buffer and sends them in batches (the buffer size can be adjusted).

Part of the sensor release, code defender is measuring the following KPI to verify there is no impact on the customer web site

  1. First Contentful Paint
  2. Largest Contentful Paint
  3. Dom Content Load
  4. Total Blocking Time
  5. Time To Interactive
  6. More...

Furthermore, the Sensor sends the duration time of some main functions in production. This information can later be used to improve performance or alert customers to an issue.