Yet another person on Reddit surprised that Asahi Linux compiles stuff way faster than macOS.
"But macOS is so optimized for the hardware!" they all say... except Linux is already way more optimized in general than macOS is, for many workloads!
$ time tar xf linux-6.3.3.tar
macOS on APFS: 6.8 seconds
Linux on ext4: 1.0 seconds
Both on an M1 MacBook Air 13". That's how much faster the Linux is at dealing with files than macOS.
The hardware drivers don't matter you're dealing with pure CPU workloads and an NVMe SSD. We already have cpufreq and share the Linux NVMe core, so there's nothing left to optimize there that is specific to this hardware. The only thing missing is deep CPU idle which will unlock boost clocks, but only for single-core workloads (multicore compiling is already at its max).
@marcan Does Apple still cheat in the NVM-e drivers?