In raw performance, M1 cannot match workstation-class CPUs. Since Apple was almost exclusively offering only ultra-mobile Intel chips with horribly dated GPUs, M1 was a giant leap in their offering, but in the desktop PC market there are more powerful chips available. And even some old ones can perform quite well.
I have an M2 Macbook air (IE; fanless little thing) but it completely desicrates the memory of its predecessor (Precision 5520 w/ Xeon E3-1505m v6) which has a 45W TDP.. (IE. double and a bit).
In single core it continues to readily beat my Theadripper 3970x workstation which has a 280W TDP... (more than 12x the TDP of the M2, though it definitely beats it in multi-core...)
I think something else is at play here. Be it a terrible filesystem or (as mentioned in another comment: the use of efficiency cores for compilation).
> time make -j
real 0m8.716s
user 0m29.786s
sys 0m15.102s
> time taskpolicy -c background make -j
real 0m42.196s
user 1m13.041s
sys 0m30.957s
(The latter command forces use of the efficiency cores, the former is allowed use everything)One thing that _is_ notable is that it isn't really managing great parallelism (particularly visible in the efficiency core one).
(Only looking at the actual build, as IME autoconf has remained reassuringly slow for the last 20 years, in defiance of all progress in CPUs, so I'm not at all surprised by that one...)
Is your RAM running at 3600MT/s (i.e. IF @ 1800MHz)? If not, that's 30% loss for some workloads.
Also, compilation is a multi-threaded process. It doesn't make sense to blame things on single core perf.
I’d bet that 90% of the issue is that make, /bin/sh, and autotools all use fork() on macOS instead of posix_spawn() (I think that’s still the case…), and fork is slow on macOS. But not quite slow enough to get all that fixed by default.
Performance doesn't scale linearly with TDP, and that's always been the case. Take any laptop vs desktop CPU, and you'd see the same ratios at play.
Nonetheless, the M1 will most definitely be drawing much less power, its essentially an Atom processor after all. Its just gonna be hard to really put a number on it - even if you could read out the consumption from the BIOS, as they're doing things differently (integrated GPU and SSD controller for the apple silicone chips etc)
are you certain you arent swapping these? Intel CPUs are famously running up to 100C before stopping their boost clock.
One need only watch a single episode of Linus Tech Tips.
people have reported barely any cooling requirements on the M1 and M2s comparitively.
Its a quiet old model, and consumer CPUs of that generation where generally targeting ~60-70°C. Nowadays they're all going for 95-100°C, wherever its Intel, AMD or Apple
The numbers make me think it's using the 'efficiency' cores, or might indicate a lot of memory pressure issues (which seems unlikely at 16GiB)
There's a better write-up about compilation performance here: https://build2.org/blog/apple-m1-compilation.xhtml
For macOS there is a `taskpolicy` command to set the usage of efficiency and high performance cores. I'd expect that it's using high performance cores by default but you can force it by running `taskpolicy -c utility <program>`.
You can also force it to be run on efficiency cores by running `taskpolicy -c background <program>`
Having said that though, as someone who got an M1 MBP (10-core) a few months ago, I also found that CPU-wise (ignoring memory/cache bandwidth, which is much faster on the Mac), it wasn't really any faster than a 2012-era dual-socket 4 core Xeon at 3.3 Ghz for compiling and raytracing (the latter doing lots of FP calculations which I'd expect the M1 to compute OOO really well with how wide it is) when the code was CPU-bound. The power usage is very different though obviously. Hyperthreading also helped the Xeon quite a bit.
Battery life is very impressive though, and haven't really heard the fans yet.
E.g. thinkwiki says its an i7-2640M , in an X220T laptop from 2011. Passmark gives it a single threaded rating of 1516. The current best CPU I can see in a thinkpad with a quick lookup is a i7-1185G7, with a single threaded rating of 2843. That's almost double, but we're comparing with a system of 12 years ago.
Laptops have become a lot more power efficient, GPUs, multi core USB and WIFI are better. But the i386 days where you could more than double your CPU performance after 1.5 years are clearly over. That x220, if upgraded with SSD and 16GB ram and a new battery still does quite well today, and I paid about €500 for it over its whole lifetime.
That performance level is maintained when the laptop is unplugged too, which is hard to find in a laptop. Most of them will throttle themselves pretty hard the moment you’re no longer tethered to a wall because otherwise they’ll burn through their batteries in a flash.
I understand from the CPU model that the main development machine of the author is desktop with decent ventilation for the hot and power hungry i7 CPU, which makes a huge difference.
...but that would deflate his ragebait post.
You're welcome to confirm your assertion at anytime thanks to Daniel and nearly 1k others generosity. Feel free to let us know what you find.