eclipse-leshan / leshan

Java Library for LWM2M
https://www.eclipse.org/leshan/
BSD 3-Clause "New" or "Revised" License
653 stars 407 forks source link

Try to improve lighthouse score of servers demo #1240

Open sbernard31 opened 2 years ago

sbernard31 commented 2 years ago

The lighthouse score of leshan-server-demo and leshan-bsserver-demo could be probably improved :

(full test can be done locally using chromium devTools or partial test online at : https://pagespeed.web.dev/ )

E.g. for leshan-server-demo (tested on sandbox : https://leshan.eclipseprojects.io) Capture d’écran de 2022-04-20 17-54-12

sbernard31 commented 2 years ago

Some hits about that : https://news.shardlabs.io/how-to-drastically-reduce-your-bundle-size-and-load-time-in-vue-js-54370d513fdf

sbernard31 commented 2 years ago

few points performance point grabbed by #1242.

E.g. for leshan-server-demo (tested on sandbox : https://leshan.eclipseprojects.io/) Capture d’écran de 2022-04-26 12-06-59

sbernard31 commented 1 year ago

I retest https://leshan.eclipseprojects.io/ before/after https://github.com/eclipse-leshan/leshan/pull/1541.

Before Migration with vue-cli

For Mobile : server-demo-vuecli-mobile

For Desktop : server-demo-vuecli-desktop

After Migration with vite 5

For Mobile : server-demo-vite-mobile

For Desktop : server-demo-vite-desktop

Get some very little improve on performance.

sbernard31 commented 1 year ago

Some score after #1549 :

For Mobile : after_PR1549_mobile

For Desktop : after_PR1549_desktop

(but score are not really constant and I see some significant changes from on test to another with same code targeted ... :expressionless: )

We can retest when we will move to vue3 + vuetify3