DEV Community

Minh Nguyen
Minh Nguyen

Posted on

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.

Top comments (1)

Collapse
 
respect17 profile image
Kudzai Murimi

Well!