News for hackers. Stuff that matters.
Re:Apple to Apple Comparison: M1 Max vs. Intel by xcambar on Friday December 24, 2021 @08:45AM (#29673508)
I assume 2021 and not 2012, right?
Re:Apple to Apple Comparison: M1 Max vs. Intel by grishka on Friday December 24, 2021 @09:03AM (#29673638)
No, I do mean 2012. The first ever macbook with a retina display. I managed to skip all those troublesome models.
Re:Apple to Apple Comparison: M1 Max vs. Intel by miked85 on Friday December 24, 2021 @09:39AM (#29673924)
I'd expect a 10 year old laptop to be quite a bit slower than a new one, M1 or not.
Re:Apple to Apple Comparison: M1 Max vs. Intel by grishka on Friday December 24, 2021 @10:19AM (#29674261)
I ran this build once again now making sure nothing heavy was running in the background. It took 11 minutes and 5 seconds. The fans did audibly spin up and all CPU cores were 100% loaded (asitop output: https://i.imgur.com/OY36RVB.png). Here's the breakdown of how long each build step took: https://i.imgur.com/TcdfA4L.png

Do keep in mind though that the NDK (which takes like 90% of the build time) is still built for x86. So the 4x difference is mighty impressive when you consider that you're comparing an old x86 CPU running its native code to ARM emulating x86, even if doing so via translation.

Re:Apple to Apple Comparison: M1 Max vs. Intel by sprite on Friday December 24, 2021 @12:07PM (#29675272)
It will get even better once everything is arm native. Even the Java Sdk that comes with current version of android studio runs through Rosetta.
Re:Apple to Apple Comparison: M1 Max vs. Intel by grishka on Friday December 24, 2021 @01:49PM (#29676489)
Hm, no, android studio itself runs natively, and the JDK I'm using is native too, from adoptium.net. Most android build tools (d8, r8, etc) are written in java so they run natively. Building the java part in any project is really fast. Like, freakishly fast. 3 seconds to compile a thousand classes, WAT?!
Re:Apple to Apple Comparison: M1 Max vs. Intel by sprite on Friday December 24, 2021 @02:00PM (#29676617)
Ahh that’s awesome then. I thought the JDK that shipped with android studio was x86. I’ll try the one adoptium.
Re:Apple to Apple Comparison: M1 Max vs. Intel by bufferoverflow on Friday December 24, 2021 @09:38AM (#29673922)
So a decade old MacBook is only 4x slower than the cutting edge one?
Re:Apple to Apple Comparison: M1 Max vs. Intel by sudhirj on Friday December 24, 2021 @10:14AM (#29674207)
For single core workloads, probably. Didn’t we hit the clock speed cap around 2010?
Re:Apple to Apple Comparison: M1 Max vs. Intel by bla3 on Friday December 24, 2021 @10:55AM (#29674581)
Building a project isn't a single-core workload usually, though.
Re:Apple to Apple Comparison: M1 Max vs. Intel by grishka on Friday December 24, 2021 @11:12AM (#29674732)
Isn't C++ compilation mostly single-core-bound still? Of course it does compile as many files in parallel as there are cores, but it's not possible to compile a single file in multiple threads.
Re:Apple to Apple Comparison: M1 Max vs. Intel by khuey on Friday December 24, 2021 @11:17AM (#29674782)
Yeah but most projects that have compile times long enough to care about have many source files.
Re:Apple to Apple Comparison: M1 Max vs. Intel by ohgodplsno on Friday December 24, 2021 @01:21PM (#29676165)
You haven't seen most Android projects that have a massive legacy module that Gradle spends 5 minutes compiling and doing nothing else. Seeing those 7 lines say IDLE is a daily experience
Re:Apple to Apple Comparison: M1 Max vs. Intel by greatjack613 on Friday December 24, 2021 @10:25AM (#29674325)
There is a lot more in single core performance then just clock speed, in fact ipc is even more important then clock speed when it comes to single core computing
Re:Apple to Apple Comparison: M1 Max vs. Intel by treefry on Friday December 24, 2021 @11:16AM (#29674774)
Not surprising as Moore's law had stopped applying to CPU. Assuming each year CPU gets 20% improvement, from 2012 to 2021 the latest cpu is 5x more powerful than the old one. Considering 30% performance loss for converting x86 instructions to ARM, 4x is a reasonable number.