Skip to content

Improve frontend performance #4434

Description

@patrickelectric

Hear me out, BlueOS frontend works without performance issue, but sometimes I have performance issues!!!

Image

So, I did a test for all pages, 5 min each.

  • MAVLink Inspector is 40.34% of one core while idle
  • Vehicle Setup is 16.30%
    • /mavlink-camera-manager/v4l at delay 1000, 455 KB per response, 1.53 GB/hour
    • Video Streams uses delay 5000 for the same endpoint and is 6.55%
  • Zenoh Inspector is 11.09%
    • declareSubscriber('**') on mount, 1140 msg/s
    • peak 61.5%
  • /system-information/platform grows with uptime
    • 706 KB to 13.2 MB per 5 min window in under 2 hours
    • raspberry.events.list never trims
    • 85-91% of bytes on 18 of 22 pages
  • Network Test heap peaks at 159.2 MB
    • 100 MB ArrayBuffer allocated on mount, no test started
  • OneMoreTime pollers leak
    • data: () => ({ disposeWith: this }) in Pings.vue and MainView.vue
    • after a second visit to /vehicle/pings, /system-information/serial doubled from 12.4 to 23.8 req/min
  • NMEA Injector is 3.53% (shell only)
    • 14 of 22 pages stay within 2x of that

Tested in: heads/master-0-g65b2affb

Here are some data:

Image Image Image Image Image Image Image Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P1 - Important PriorityHigh priority taskbugSomething isn't workingcoreIssue related to BlueOS-coreinvestigateNeeds investigation from developers and considerationmove-to-stableNeeds to be cherry-picked and move to stableneeds-external-changeDepends on 3rd party toolsuiUser Interface feature

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions