-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Perf] Baseline CPU Usage #1539
Comments
4% CPU usage when the app isn't doing anything is high. The run loop shouldn't do real work if there are no tasks for it. |
ListView has a |
Sorry, my mistake, it has already been removed recently, but we still have to go through the modules that implement |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out it's new home: https://productpains.com/post/react-native/perf-baseline-cpu-usage |
Was trying to make some headway with UI automation of a hybrid RN app but it looks like this idle CPU usage prevents Apple's automation support from detecting the app is actually idle leading to: "App failed to quiesce within 30.0s". I've been looking for a means of tweaking what the automation framework needs to detect idle in terms of CPU. |
For me an idle app (just some views, no logic) takes 8% |
It seems that any react-native app uses 4% CPU even when idle even when in Release.
https://www.dropbox.com/s/plsvxh7r15bpha9/Screenshot%202015-06-06%2020.00.45.png?dl=0
I profiled in Instruments (both my own app and UIExplorer) and it seems that jsThreadUpdate is the one responsible. Seems to be constantly looking up module names and dispatching to RCTEventDispatcher and RCTTimer (even when they have no work).
https://www.dropbox.com/s/u5mtztcltk1c884/Screenshot%202015-06-06%2020.02.27.png?dl=0
This may very well be intended? This was done on an iPhone 6 so I assume it can only be worse on lower end devices.
The text was updated successfully, but these errors were encountered: