0

There are a lot of metrics we can use to calculate Web Page load. Some are Time Instant: FirstContentfulPaint, LargestContentfulPaint Some are Time Integral: SpeedIndex

ByteIndex is a proposed alternative to SpeedIndex, has anyone ever come across an algorithm to actually calculate it? https://webqoe.telecom-paristech.fr/metrics/

2 Answers 2

1

The link in the OP is further linked to a PDF document that discusses ByteIndex vs SpeedIndex in an academic whitepaper from 2016.

In that paper, they indicate that Google's SpeedIndex is measured by taking snapshots of a webpage, equivalent to 10 frames per second. They then create a histogram they use for comparison. This can be resource-heavy, especially on compute time. (I'm not even sure how accurate this is, just what the paper discusses.)

From there, they discuss ByteIndex and ObjectIndex, which are calculated using a Calculus Integral.

A calculus integral showing a formula calculating ByteIndex and ObjectIndex

Using this integral, you'll need to translate this into a coding algorithm. (It's been too long since I've done Calculus.)

Since Google doesn't use ByteIndex or ObjectIndex, I'd say any calculation using these doesn't really matter, other than from an academic research perspective.

It's really difficult to get Google to change its formulas. It's best to use common tools for testing web load/performance like Google PageSpeed, JMeter, K6, etc.

1
  • That byte index is an integral of % 'un'downloaded content is something I was aware of, I was not perhaps clear enough in my question. The aim was to get an algorithm. Commented Oct 22 at 22:32
0

I found (after 4 days search actually) an implementation within https://tenghardt.net/web-pitfalls-paper.pdf , which proposes a recipe and provides an algorithm in python.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.