by revolvingthrow · 2mo ago · 0 comments
According to geekbench 7800x3d is 2400 single core, 15500 multicore. M4 pro is 3350 single core and 24750 multicore. Yet when I convert video using libsvtav1 with ffmpeg I’m getting noticeably faster performance on the desktop. And that’s with mbp, which doesn’t thermally throttle within 15 seconds.
Is it the 96mb cache? Avx-512? Are benchmarks bullshit when comparing different architectures?
From what I've been able to gather, Apple only supports SME and the small "streaming" part of SVE2 required by SME since the M4. Which seems to be mostly useless for video encoding (I only see NEON/SVE in https://gitlab.com/AOMediaCodec/SVT-AV1/-/tree/master/Source... or https://github.com/Multicorewareinc/x265/tree/master/source/...) it's basically a GEMM engine.
So basically, video encoding is a bad show for Apple who seem to be saying "use crappy hardware encoding and buy amd64 if you need more".
Very hard to find benchmark data. Found https://openbenchmarking.org/vs/Processor/Apple+M4+Pro,AMD+R... that shows a good x265 performance at 1080p but not 4K. Guess the wider SIMD units matter more there.
AVX still wins though.
M series still wins on performance per watt and now apparently leads on general purpose code.
All these leading edge chips are very good. We have an embarrassment of riches when it comes to blistering fast chips here.
On what, microbenchmarks? I have realtime audio workloads where the hot loop is essentially linear algebra. Exactly the kind of work that suits AVX2/AVX512. Guess what, Apple Silicon still pulls ahead because real workloads are branchy, cache-hungry, full of dependencies and do not line up in 8 neat f64 operations per cycle.
Apple has dedicated hardware for video decode and encode for several video formats.
That's why the comparisons between PCs and Macs running video editing software favor the Macs so heavily.
Video editing is an area that Apple dominates because PCs become a laggy mess on complicated high resolution edits.
AMD has started to copy the same strategy with the recent Ryzen AI chips. They include hardware video encode/decode units as well as unified memory.
Apple chips don't have AVX-512.
They do have media engines (that don't support AV1 encode), so if you switch to H.265, it will pull way ahead.
Zen 4 isn't 512 bits wide though, it's a split cycle 256 bit wide SIMD engine otherwise very similar (except in register size) to M6's.
The answer is more that Geekbench is at this point[1] heavily tuned to exactly the code Apple silicon does well: implicitly parallel wide-issue scalar code that you typically get out of modern compilers and JIT engines when throwing mostly-unoptimized "regular source code" at them. Apple has an enormous amount of instruction issue parallelism compared with x86.
The grandparent is looking at transcoding tasks where the limit isn't instruction issue but actual compute hardware on the core. And Apple doesn't actually win by much there.
It's just hard to know what to measure. Geekbench tends to be a metric for "feels fast doing boring interactive user stuff", which probably matches Apple's marketing imperatives well.
[1] Really they keep moving harder in that direction with every release. The "cooling pauses" in v6 likewise seemed very much like an attempt to boost the score on fanless Apple devices. If one were the type to allege a dark conspiracy, this is a tempting spot.
MacBook Air/neo are the only ones without fans. Even the Studio Display has a fan
Now... you can make a reasonable case that this matches real world interactive load better. But it also happens to have the practical effect of making Apple's numbers better, and no one else's. The new benchmarks are measuring subtly different things, and the new thing they measure happens to be what Apple wants to sell. At best, that's backwards.
GB's author, John Poole, has stated the intent of Geekbench CPU is to measure the CPU and CPU alone, as in he doesn't want to measure limits caused by the form factor of the device the CPU under test is embedded in. Since GB runs on phones, that means he had to implement the cooldown pauses.
Intel's turbo boost means this GB feature almost certainly inflates lots of x86 scores too, even with fans involved. Not sure why you're being so conspiratorial about it.
Another point is that the multicore part uses all core including E-Core. On AMD the multicore are all the same. Meaning for some benchmarks this will flavour Apple more.
Again there is nothing that stop people from optimising it for ARM Mac. The problem is the usage of it is so small it probably doesn't make sense to focus on it. SVT took a really long time for it to reach quality parity with AOM's AV1 encoder and later exceed it.
Geekbench 7 results:
* AMD 2990WX: 1384 (single), 13052 (multi) (https://browser.geekbench.com/v7/cpu/181239)
* Apple M4 Max: 3552 (single), 29863 (multi) (https://browser.geekbench.com/v7/cpu/390256)
For parallelisable stuff that can occupy all cores for an extended period, the 2990WX typically takes about ~1.2x as long to do the same work/does ~0.83x the work per unit time, assuming code compiled with clang or gcc. Which isn't really coming across in the numbers here.
CPUMark is a bit better:
* AMD 2990WX: 2282 (single), 32040 (multi) (https://www.cpubenchmark.net/cpu.php?cpu=AMD+Ryzen+Threadrip...)
* Apple M4 Max: 4590 (single), 43911 (multi) (https://www.cpubenchmark.net/cpu.php?cpu=Apple+M4+Max+16+Cor...)
I haven't spent much time timing single core stuff, except - regarding clang, which looks like it contributes to the Geekbench 7 score, I did some measurements a few months ago suggesting that clang compiles for x64 more slowly than for ARM, all else being as equal as I could be bothered to try to make it: https://news.ycombinator.com/item?id=46938682 - and the single threaded test runs I did of my code suggest that the Geekbench 7 single core might be about right?
(Whether the clang timing discrepancy is actually relevant to Geekbench, I've no idea, but I thought it interesting anyway.)
If you need a benchmark that makes the PC look massively faster than the Mac, I'm sure those are available too.
Go check out blender CPU scores if you need any reassurance that AMD still makes some kind of sense.
https://opendata.blender.org/benchmarks/query/?compute_type=...
Bingo, each CPU is too unique with its own strengths and weaknesses to make broad statements, marketing picks up what they like and ignore rest