r/reactnative • u/Miserable-Pause7650 • 6d ago
What tools do u use to measure performance of published apps?
Im talking about UI fps, JS fps, CPU usage. I know theres the development tool one if I shake my phone in expo, but published apps often perform better as they are more optimised. Also what are the metrics to look at aside from FPS and CPU usage?
6
Upvotes
2
u/anthony-ball 5d ago
Release build on the cheapest Android you can get your hands on is the honest baseline, the dev menu numbers mislead you in both directions. On a wallet app I worked on, the screens that hurt were the live price charts, and moving them to Skia was the biggest win. For published builds I lean on Android vitals and Xcode Organizer for trends, then Perfetto or Instruments when a specific screen feels janky. Beyond FPS I'd watch cold start and JS thread stalls during navigation, since that's what users actually notice.
6
u/mcgooporn 6d ago
Shit phone test, nothing beats a 100 euro Chinese bloatware for testing, as that is the minimum target. Nothing beats a real device.
3
u/dawedev 6d ago
For metrics beyond FPS and CPU, you already get some for free without adding an SDK. Xcode Organizer shows launch time, hang rate, memory and disk writes from real App Store and TestFlight users, and Play Console Android vitals has ANR rate, crash rate, slow/frozen frames and startup time. Worth watching memory and out-of-memory kills on low-end Android too, since that's where RN apps with big lists or images usually fall over. For JS side timing in production, wrapping key screens with something like react-native-performance marks lets you log time to interactive per screen instead of guessing from FPS.
3
u/GeekyAntsBFSI 6d ago
I’d test a release build on a real device. Use Perfetto or Android Studio Profiler on Android and Instruments on iOS. For production trends, check Android vitals and Xcode Organizer.
Beyond FPS and CPU, I’d track JS thread stalls, cold start, tap-to-response time, and peak memory. Smooth scrolling can hide a blocked JS thread, so I’d measure how quickly taps actually respond.
1
u/FalconGood4891 6d ago
Following
1
u/Careless_Cycle5991 6d ago
android studio's profiler works on release builds if you add
<profileable android:shell="true"/>to the manifest, and on iOS you can run Instruments (time profiler) against a release config build. for real users, sentry or firebase perf give you cold start time and slow/frozen frames, and play console vitals shows ANRs. i'd watch those more than avg fps tbh1
u/davidbalbino 5d ago
one thing nobody mentioned: measure the app idle too, not only while scrolling. a RN app sitting on screen doing nothing can still keep waking the CPU and that's what drains battery, users don't see it in fps.
on android I pretty much just use adb against a release build:
adb shell dumpsys gfxinfo <pkg>for janky frames %adb shell dumpsys meminfo <pkg>for memoryadb shell topfor CPUadb shell dumpsys batterystats --resetthen leave it idle some minutes and dumpbatterystats <pkg>for wakeups and mAhrun each thing like 3 times and take the median, numbers vary a lot between runs tbh