r/reactnative • u/kriptonian_ • Oct 09 '26
Help Migrated to New Architecture + React Compiler. How do you actually measure the performance gains?
We recently migrated our React Native app from the Old Architecture to the New Architecture and enabled React Compiler.
Now we want to measure the actual performance improvements rather than just saying the app feels faster.
What metrics should we track? FPS, frame drops, interaction latency, render time, CPU and memory usage, or something else?
I’m guessing CPU and memory might not necessarily improve even if rendering gets more efficient.
Also, how would you benchmark the changes reliably on real devices, and can we isolate the impact of the New Architecture from React Compiler?
Would love to hear from anyone who has done this in production!
4
u/Dvass138 Oct 09 '26
In Xcode instruments
1
u/twboc Oct 09 '26
We recently had a memory leak after migrating from old architecture to the new one. If you have a app that uses a lot of different libraries they might trigger multiple screen reloads because of the new architecture. "Compiling" you code might help but in our case older android devices stopped working after 30 minutes and crashed. The reason for that is two fold. Low quality of libraries responsible for components or included in the app lifecycle (network listeners, monitoring, etc.) they can leak memory and cause a issue that shows up only after a while. Another things is that compiler can be aggressive about cacheing your views, containers and components. This means that your views might not respond to the state updates because they do not reach the view since it is aggressively cached. Another thing. We build our own dev console (like in quake) to measure some component re-renders and a few other things. React native has a notoriously bad debugging tooling.
1
u/Substantial-Swan7065 Oct 09 '26
TTI, navigation, memory usage over session
3
u/kokerali Oct 10 '26
Turning both on together gives you a before/after result, not separate gains. Start with New Architecture + Compiler off versus the same build with Compiler on. Keep RN, dependencies, Hermes, data and device identical. If you can still build both architectures on one compatible RN version, compare those with Compiler off separately. Otherwise label the old/new comparison as the whole migration, including version and library changes.
Pick one slow flow, such as opening a loaded list and tapping into a detail screen. Repeat it on the same physical device in release builds, alternating build order. Define the endpoint as the screen actually being usable, not just mounted. Record median and tail latency, dropped frames during that flow, and memory after repeated open/back cycles. Keep cold startup separate. RN's performance guide explains why dev-mode results and JS/UI frame rates can mislead. Fewer React renders alone wouldn't prove faster navigation or lower memory use.
1
u/chunkypenguion1991 Oct 09 '26
Flipboard explorer, Block canary
1
u/nabhan_builds Oct 11 '26
Release builds only, same device, same OS version, and run each scenario at least 5 times then report the median. Debug builds lie about everything here. For TTI, record performance.now() at the top of your JS entry point and again inside a requestAnimationFrame in the first screen's first onLayout callback, then log both to your analytics. For navigation, wrap your navigate calls: timestamp before the call, then timestamp again in the destination screen's first onLayout inside rAF, and take the difference. For frame drops, use the built-in FPS overlay on a release build while scrolling your worst list, or Flashlight if you want repeatable numbers. One honest expectation: if you barely re-render, the compiler will not move your numbers at all. The new architecture's wins show up in input responsiveness and UI-thread smoothness under load, so measure tap-to-paint on real interactions rather than render counts.
1
u/codes_astro Oct 14 '26
I was using this tool called Measure to measure everything nd analyze performance , it's open source and easy to plug and test even via mcp. give it a try
you can also look at this