Menu

Our chat app idles at 0.3% CPU in PHP 8.5 and 8.62% in React Native, both measured on a Galaxy S10
📰

Our chat app idles at 0.3% CPU in PHP 8.5 and 8.62% in React Native, both measured on a Galaxy S10

DEV Community: reactnative·David William Balbino·2 days ago
#CfO8xygd
#devtoreactnative#devto#dev#native#chat
Long article (1307 words) — no AI summary yet.
Reading 0:00
15s threshold

We rebuilt Zé Chat in typed PHP on PAM Native, with no JavaScript runtime involved, and measured it against the React Native build on the same phone, including the four tests PAM lost.

Leave a chat app open on the screen and stop touching it. Nothing is happening, yet the CPU keeps waking up. In our React Native build of Zé Chat, that was 3,543 wakeups per minute with the app sitting idle. The JavaScript engine, the bridge and the timers keep running, and the user's battery pays for it.

We rebuilt the same app on PAM Native, our open-source framework for Android and iOS apps in typed PHP 8.5.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.