sitespeedio / sitespeed.io

sitespeed.io is an open-source tool for comprehensive web performance analysis, enabling you to test, monitor, and optimize your website’s speed using real browsers in various environments.
https://www.sitespeed.io/
MIT License
4.76k stars 603 forks source link

Scores calculation #4165

Open NIFr3d opened 6 months ago

NIFr3d commented 6 months ago

Your question

Hello, I'm currently trying to build an ecological score for websites, and I'm using sitespeed for the browser data analysis. I couldn't find how you are calculating the coach scores (I'm mostly interested in performance and best practice score). Is there some documentation about how you calculate your scores and how to weight the different factors or do you have a relevant paper on how i could build my own score ?

soulgalore commented 6 months ago

Hi @NIFr3d sorry no they are only documented through the code. I plan to update that later this year but that is at least a couple of months away, it will probably happened by the end of the year. I can help you through the code though if it would help?

NIFr3d commented 6 months ago

Hi, sorry for the late response, if you could just tell me which files I need to look for it should be enough !

soulgalore commented 5 months ago

Sorry for the late answer: https://github.com/sitespeedio/coach-core/tree/main/lib/dom/performance and https://github.com/sitespeedio/coach-core/tree/main/lib/har/performance