![]() ![]() The results are incredible! The M1 machines reduce build times (with caching) by 68% compared with the Mac mini and 53% compared with the Mac Pro. Therefore, it’s essential to use a real app for comparisons like this.Īll build times are measured in seconds. You will see how big the difference is in terms of build time between the Counter and the Sharezone apps. We are coming to the central part of this article: the results. Results of comparing M1 Mini vs Mac Pro vs Mac Mini You can also take a look at this spreadsheet, which shows all the raw data and links to the builds. For example, the later build time for the iOS Counter app is the average time of three builds. We ran every build three times and calculated the average. CocoaPods cache: HOME/Library/Caches/CocoaPodsįor more information about how to use caching in Codemagic, just take a look at the documentation on dependency caching.For caching, we cached the following paths: We compared the builds without and with caching. To get a more realistic view, all builds used the release mode of Flutter.įor the tests, we just used the flutter test command. These machines have the following configuration: We are using Codemagic’s virtual machines for the test, which you can use for CI/CD. Therefore, you will see very realistic build times. It uses a bunch of dependencies, like many of the Firebase packages and several other ones (Sharezone is open source - you can find all the dependencies here). In the comparison, we focus more on the Sharezone app because Sharezone is a real production app with +300,000 registered users. Sharezone - an open-source school planner students, parents, and teachers can use to organize together.To compare the builds of the Flutter apps, we used two apps: Which apps have been used for the builds?.Let’s talk about the setup of this comparison and take a look at questions like: This article is written by Nils Reichardt Comparison setup Use M1 Mac mini VMs by default with Codemagic□ Build faster In this article, we’ll give you the facts and figures you need to decide if an upgrade is worth it. So we know that M1 machines are fast, but should we use them in CI/CD to speed up our pipeline? To help answer that question, we compared the M1 mini, Mac Pro, and Mac mini for iOS and macOS builds with Codemagic. TL DR Engineering hours are much more expensive than laptops!- Jameson November 3, 2021 The break-even point happens at 3 months. So for a team of 9, $32k of laptops will actually save $100k in productivity over 2022. We recently found that the new 2021 M1 MacBooks cut our Android build times in half. Perhaps you already read the tweet by Jameson Williams (a staff software engineer at Reddit): Since then, we have all read and heard from other people about the crazy performance improvements. In November 2020, Apple released the M1 MacBook and, one year later, the M1 Pro/Max chips. TL DR: M1 machines are astonishingly fast! For iOS builds (with caching), we see build time improvements of ~50% compared with the Mac Pros. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |