156 points · by ibobev · 3y ago · 95 comments
Also, I'm not sure if "correcting" the numbers for 3 GHz is reasonable and reflects real-life performance. Perhaps some throttling could be applied to test the CPUs using a common frequency?
It's not useful at all. It effectively measures IPC (instructions per clock), which is just chip vendor bragging rights.
Assuming that all the chips meet some baseline performance criteria: for datacenter and portable devices, the real benchmark would be "instructions per joule."
For desktop devices "instructions per dollar" would be most relevant.
+1. Moreover the author then seems to conclude from this benchmark:
> Overall, these numbers suggest that the Qualcomm processor is competitive.
This is an odd conclusion to draw from this test and these numbers, given how little this benchmark tests (just string operations). Does this benchmark want to test raw CPU power? Then why "normalize" to 3GHz? Does it want to test CPU capabilities? If so why use such a "narrow" test?
IMO this benchmarking does for a good data-point, but far from enough to draw much of a conclusion from.
Well, it's one measure, but scaling potential and absolute performance limit matters as well. In use cases where a desktop is performing work to help one or more humans, the cost of salary and other support may utterly drown out even a very expensive extremely high power system. Ie., a 1200W workstation being used at maximum power 10 hours a day 365 days a year (an absurd utilization ratio) at $0.15/kWh (average US electricity cost) would still only be around $650/year. If it boosted the productivity of a typical tech worker even 1% it'd pay for itself no problem. It's easy to lose sight sometimes of how historically incredible the bang for the buck is in tech.
I think it's important to remember because some designs that do incredibly well at small sizes run into challenges scaling. Like with CPUs, the nature of silicon fabrication makes it ever more difficult to grow a monolithic die. Switching to a chiplet-based design does mean absolute efficiency and minimum power challenges amongst others, but dramatically improves scalability at the high end. It's a sort of infrastructure tradeoff. Apple for example has done incredibly well with its big silicon SoCs from handhelds to portable Macs, but it's been struggling to do a Mac Pro or even updated Studio. It's not clear that they physically can do something on the level of a modern Epyc chip anymore than Intel could with monolithic Xeons.
So normalized performance/watt and performance/$ and so on do matter, but absolute final density and scale up are another part of the matrix for certain use cases too.
That aside, I think it would be more important to look at the carbon emissions impact of code/cpu's.
That one person parsing urls might save few hundred dollars of not optimising their code but if it is being used billions of times a day the energy (and therefore emissions) impact can be huge.
I’m not trying to optimize for cost or energy efficiency.
For cloud customers as well
Cloud costs are dominated by power delivery and cooling. Both of those are directly influenced by how much power the chip uses to achieve it's performance target.
I guess it does indirectly influence dollar cost, but I was referring to MSRP of the chip. As a simple example: the per-chip cost of Graviton is probably enormous (if you factor R&D into the cost of a chip), but it's still cheaper for Amazon customers. Why? Power and cooling.
DSPs will beat CPUs on DSP workloads, but, as expected, utterly fail for any general purpose workload.
so I tossed it on my 5950x and it reports "ns/url=148.994" which is about right from what I understand (zen4 gets a nice ~30% bump on a number of Linux benchmarks over zen3), here its 35% with only a 16% clock advantage.
Which is about the diff between the M2 and my old 5950X in a generation older process/etc.
So, yah current M2 slower than previous gen Intel and AMD both in this benchmark.
Of course the types of optimisations that a compiler may (or may not) do on aarch64 vs x86_64 are completely different and may explain the difference (we actually compile with -march=haswell for x86_64), but generally Graviton seems like a really good deal.
Edit: yes, haswell:-)
https://buildjet.com/for-github-actions/blog/a-performance-r...
I wish this were only a theoretical concern, a theoretical incentive, but its not. Github Actions is slow, and Gitlab suffers from a similar problem; their hosted SaaS runners are on GCP n1-standard-1 machines. The oldest machine type in GCP's fleet, the n1-standard-1 is powered by a variety of dusty, old CPUs Google Cloud has no other use for, from Sandy Bridge to Skylake. That's a 12 year old CPU.
But the cloud provider prefers the latter because it has 500% more cores for 50% more power. Which is why the latter still goes for >$2000 and the former is <$15.
Density is important because if you can only have a max of, for example, 20 cores for an ARM solution, but 96 cores in the case of EPYC Genoa, Genoa is going to win out for any multi-core workload.
The strength of Apple silicon is that it can crush benchmarks and transfer that power very well to real world concurrent workloads too e.g. is this basically just measuring the L1 latency? If not are the compilers generating the right instructions etc. (One would assume they are but I have had issues with getting good arm codegen previously, only to find that the compiler couldn't work out what ISA to target other than a conservative guess)
If the benchmark were only measuring L1 latency, what would that imply about the ‘scaling by inverse clock speed’ bit? My guess is as follows. Chips with higher clock rates will be penalised: (a) it is harder to decrease latencies (memory, pipeline length, etc) in absolute terms than run at a higher clock speed to maybe do non-memory things faster; and (b) if you’re waiting 5ns to read some data, that hurts you more after the scaling if your clock speed is higher. The fact that the M1 wins after the scaling despite the higher clock rate suggests to me that either they have a big advantage on memory latency or there’s some non-memory-latency advantage in scheduling or branch prediction that leads to more useful instructions being retired per cycle.
But maybe I’m interpreting it the wrong way.
Wouldn't modern C++ compilers have decent codegen tuning for all these platforms?
The 8cx 3rd Gen is based on Cortex X1, the same as Snapdragon 888.
The Graviton 3 is based on Neoverse V1 which in itself is tweaked version of Neoverse N1 with relaxed pref / watt / die area and much improved SIMD work load. And N1 is based on Cortex X1.
The current Snapdragon is on Cortex X3. With Cortex X4 coming soon.
- on an AMD Ryzen 5 Pro 4650U (laptop) I get 270 ns/url
- on an Ampere Altra Max M128 I get 340ns/url
So yeah, this show how great Apple's M2 are
We're discussing overall compute power differences between CPU architectures, minute differences in performance between identical-architecture CPU cores stemming from higher clock speeds is outside the scope of this discussion.
Apple uses LPDDR4 modules soldered to a PCB, sourced from the same Korean company that everyone else uses. Intel has used the exact same architecture since Cannon Lake, in 2018.
> Apple uses LPDDR4 modules soldered to a PCB, sourced from the same Korean company that everyone else uses.
Apple might have sourced and soldered on LPDDR modules from the same company, but it is not LPDDR4 and it is LPDDR5 6400 connected via a 256 (Pro), 512 (Max) or 1024 (Ultra) bit wide memory bus.
> Intel has used the exact same architecture since Cannon Lake, in 2018.
Other than LPDDR5 6400 had not existed in 2018, no Intel CPU has ever used a 512, leave alone 1024, bit wide memory bus even in the server setup. Wide memory bus is conducive of faster concurrent complex builds, and Rust / Haskell builds show significantly faster build speeds as well.
What is somewhat relevant as the source of confusion here is that Apple puts the DRAM on the same package as the processor rather than on the motherboard nearby like is almost always done for x86 systems that use LPDDR. (But there's at least one upcoming Intel system that's been announced as putting the processor and LPDDR on a shared module that is itself then soldered to the motherboard.) That packaging detail probably doesn't matter much for the entry-level Apple chips that use the same memory bus width as x86 processors, but may be more important for the high-end parts with GPU-like wide memory busses.
Last I checked apple M1 max chips have up to 800GB/s throughput, whilst AMDs high end chips taper out at around ~250GB/s or so, closer to what a standard M2 chip does (not max, or pro version). at the top end they've got at least 2x the memory bandwidth than other CPU vendors, and that's likely the case further down too.
[0]: https://github.com/linux-surface/surface-pro-x/issues/43
They're also not the same core architecture? Comparing ARM chips that conform to the same spec won't necessarily scale the same across frequencies. Even if all of these CPUs did have scaling clock speeds, their core logic is not the same. Hell, even the Firestorm and Icestorm cores on the M1 SOC shouldn't be considered directly comparable if you scale the clock speeds.
It seems with Apple now focusing on AARCH64 the architecture being taken seriously by developers (because ya know, phones, raspberry pis etc weren't enough :)) and there is good support for most software I use day-to-day.
Now it seems Amazon is pushing HARD on Graviton, as the release of 3 has seen many services now being featured running on it. They made great process with Graviton 3, so it's not hard to see why.
Exciting times :)
Not to mention performance and energy consumption benefits.
The phone had it to begin with due to the low consumption and easy instructions set. Then the Moore's law did the rest and now they're powerful enough for data centers
Next year it’s likely all iPhones (plus possibly iPads) will also be on the new process.
It looks like Apple sells around 200 million iPhones a year, and the two pro models are somewhat more popular combined than the non-pros.
So even if we assume 2/3rds of Apple sales are older models, the pros would still need around 40 million chips on the new process in the first year.
For comparison it looks like AMD sells about 80 million chips a year, across all CPU models.
https://wccftech.com/tsmc-faces-order-cutback-from-major-5nm...
Ampere A1 Compute instances