How does CloudFlare calculate GB-sec and Wall-time for Web Sockets?

I was wondering how CloudFlare calculates GB-sec for WebSockets.

If a client stays connected for 60mins, and in that 60mins, 100 messages were sent by client, each taking 1sec to process by the Worker - 1GB constant memory usage.

  • Will the total GB-Sec be counted as 3600GB-Sec, or,
  • Time to process each messages - 60GB-Secs.
Another, question, how is median wall time calculated for these scenarios?

Thanks!
Sameer
Was this page helpful?