Does Android Studio Performance Scale Well With Number Of CPU Cores

Viewed 16478

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?
7 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

enter image description here

Well, that was my CPU usage after I started building the project. So I would say it does use all cores - just not all the time.

But I also feel like this is my Android Studio being weird. Not really sure.

Maybe a little old thread, but here is my experience with I7 4710HQ (4 cores/8 threads) and Ryzen 1600 AF @3.9 GHz: With I7 CPU load while compiling a project is at 100% most of the time and is slower than Ryzen, which loads also at 100% during compilation. So android studio and mostly gradle compiler do use all available CPU cores and threads during compilation.

Maybe a little old thread, but if you are using Kotlin and working on a single module project, compilation is heavily single threaded due to limitations with current Gradle. I know of a lot of devs complaining about the compilation speed being slower than java. For a big project, going multi modules can speed up quite significantly since it reduces chances to rebuild the entire modules unless modifications are made to those. Also different modules can be compiled in parrelel if Gradle parrelel option is enabled hence can fully utilize your fancy hardware spec.

Related