DEV Community

Minh Nguyen
Minh Nguyen

Posted on

1

Performance Measurement

Overview of Flashlight

To measure performance I utilise Flashlight - a Lighthouse-like tool tailored for mobile apps.

Flashlight is super easy to use. Simply drag your .apk files (currently support Android only) and receive real-time reports detailing your app's usage.

How Flashlight works

(Image from flashlight.dev)

Performance Before vs After

before vs after

Thanks to TanStack Query, there's been a substantial enhancement in app performance, leading to a reduction in both CPU and RAM usage. The app now maintains a consistent 60 FPS, resulting in a smoother and more fluid user experience.

Note: This test was conducted using a high-end Android device. Anticipate even more significant performance gains on low-end devices.

Further details regarding performance measurement are available below:

Before

After


In summary, migrating to TanStack Query provides you with the right tool for managing asynchronous state management, effectively removing the complexities of async-spaghetti code. This enhancement not only improves code readability and simplifies maintenance but also accelerates your development experience.

The truly globally accessible client state that is left over after migrating all of your async code to TanStack Query is usually very tiny.

That's it for today. I hope you find this useful.

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (1)

Collapse
 
respect17 profile image
Kudzai Murimi

Well!

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay