Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Android Studio Performance Scale Well With Number Of CPU Cores

for example AMD Ryzen 5 1600 has 6 (2 logical cores per physical) cores with Clockspeed: 3.2 GHz Turbo Speed: 3.6 GHz .

In contrast, Intel Core i5-7600 has 4 cores with Clockspeed: 3.5 GHz Turbo Speed: 4.1 GHz.

My exprience, Ryzen 1600 perform litle bit better than i5 7600 I have seen many games benchmarks where both processor are neck to neck and performace of Ryzen only imperasive in case of video rendring, encoding, file Zipping etc otherwise no where I found major difference.Even majorly I found i5 7600 performing better.

All in all,Here are my questions....

  • Does the number of cores really matter for Android studio?
  • Does higher clock speed matter for Android studio?
like image 585
Kamal Mrock Avatar asked May 25 '17 16:05

Kamal Mrock


2 Answers

I have had this question for a long time, and have just taken the jump from Intel i5-3570K @ 3.4 GHz (4-core) to AMD Ryzen 7 2700 @ 3.2 GHz(8-core). Let me share my test results.

+--------------------------------+--------------------------+---------------------------+
|                                | Intel i5-3570K @ 3.4GHz  | AMD Ryzen 7 2700 @ 3.2GHz |
|                                | (4-core) 32GB DDR3 RAM   | (8-core) 32GB DDR4 RAM    |
+--------------------------------+--------------------------+---------------------------+
| Rebuild the debug version of   | 2m 15s                   | 1m 3s                     |
| an app after cleaning it.      |                          |                           |
+--------------------------------+--------------------------+---------------------------+
| Build, copy and FTP a release  | 5m 5s                    | 4m 5s                     |
| package after the above task   |                          |                           |
+--------------------------------+--------------------------+---------------------------+

The second test is largely consumed by Proguard's minifying and obfuscation. I did all the tests within 24 hours immediately before and after upgrading the PC with new motherboard, CPU and RAM. The two drives (an SSD and an HD) stayed.

Thanks to Microsoft, Android emulators can run on AMD CPU-based PCs now. The emulators on this Ryzen 7 machine are unbelievably fast. It takes only 14 seconds to cold-boot a Marshmallow 6.0 - API 23 emulator. Starting any app is instant. I seriously doubt any physical Android devices can outperform the emulators.

I have been hoping to see a benchmark test designed for software development. Almost all benchmark tests seem to target gaming.

The two configurations: enter image description here enter image description here

like image 52
Hong Avatar answered Oct 15 '22 14:10

Hong


I believe that it depends on the structure of your project, especially when it comes to compiling. Gradle's option to enable parallel builds only effects the compile time of multi-module projects. If you only have a monolithic module for your entire app, gradle will only make limited use of multiple cores, if at all.

See https://docs.gradle.org/current/userguide/multi_project_builds.html for more information on multi-project builds.

Another thing to consider when building or buying a machine for Android development: Intel chips allow you to virtualize an Intel-based image in the emulator. This produces a significant increase in speed while testing your app compared to emulating an ARM-based image or running the emulator on an AMD chip.

like image 20
Code-Apprentice Avatar answered Oct 15 '22 14:10

Code-Apprentice