3 ms·
I don't think so. Time to recompile the newest p7zip (using this as an example because it dropped yesterday): - My M1 Macbook Air, 16GB RAM: 11s - My M1 Ultra
by fmajid 4y ago
I don't think so. Time to recompile the newest p7zip (using this as an example because it dropped yesterday):
- My M1 Macbook Air, 16GB RAM: 11s
- My M1 Ultra Mac Studio, 128GB RAM: 6s
- My HP DevOne (AMD Ryzen7 PRO 5850U, 64GB RAM): 51s
- My home server (HP Z2 Mini G4, Xeon E-2176G , 32GB RAM): 17s
- my Gigabyt Aorus 17G gaming laptop (i7-11800H, 64GB RAM): 35s
On GeekBench the DevOne should be faster than the Z2:
https://browser.geekbench.com/v5/cpu/compare/16189462?baseline=819357 https://browser.geekbench.com/v5/cpu/compare/16189462?baseli...
and comparable to the M1 MBA:
https://browser.geekbench.com/v5/cpu/compare/6428909?baseline=16189462 https://browser.geekbench.com/v5/cpu/compare/6428909?baselin...
Two conclusions:
- GeekBench is an incredibly flawed benchmark
- The M1 MacBook Air is an incredible machine, even more so when you consider it's a laptop.
Now that M1 support is in the official Linux 6.2 kernel, I hope running Linux on Apple Silicon will soon become mainstream and usable.
If the rumored M2 15" MBA comes out, I am totally getting one.
- eertami 4y agoHow are those the only two conclusions you came up with? If all other independent benchmarks and data points to the 5850U being roughly comparable in performance to the M1 - yet for you it appears to be 5x slower, then surely that suggests an anomalous result, or at the very least, an edge case that is not indicative of real world performance. The third, much more plausible conclusion: - Your testing method/setup is flawed or broken in some way.
- fmajid 4y agoDifferent OS (macOS Ventura vs. Pop-OS), different compiler (LLVM/clang vs. GCC), different storage (internal SSD vs NVMe M.2), different filesystem. Running with full CPU parallelism in both cases, however. In fact the test was biased against the Mac because the M1 MBA was running on battery power and the HP DevOne was plugged in. Still, 5x worse performance at a real-world task that most closely approximates my use case is a significant difference.
- rfoo 4y agoDifferent OS, different storage, different filesystem are all fair as you can say you are testing the laptop as a whole, so what was preconfigured matters. Also generating totally different code (compiler outputting x86_64 vs aarch64) is fair, because that's part of a real-world task. However, LLVM/clang vs GCC is too far and made the benchmark result completely nonsense. How can you make sure it isn't just that LLVM/clang is faster than GCC? Or even makefile detected clang so turned on different compiler flags.
- fmajid 4y agoOf course the parameters are different, but even if it were GCC or clang on both sides, the compiler back-end for arm64 vs x64 are also different. If we followed your argument to its logical conclusion, no cross-platform benchmarks should ever be performed since there will always be something different. I am approaching this from the perspective of the end user (how long does it take me to get a working p7zip executable?). That said, I attempted to make the comparison as close as possible by timing the time it takes to cross-compile Hugo for Windows/x64 (taking care to run it once to load the sources into the package cache, while clearing the object file cache each time). Thus using the exact same Go 1.20.1 compiler, the same code generator back-end, the same platform source code being compiled, and the results are much closer: - Mac Studio (M1 Ultra, 128G): 9.7s - Macbook Air (M1, 16G): 16.7s - HP DevOne (5850U, 64G): 18.7s - HP Z2 Mini G4 (Xeon E-2176G, 32G): 20.7s - Gigabyte Aorus 17G (i7-11800H, 64G): 16.5s So you are right, somehow GCC's optimizer at the -O2 level is much slower on x64 laptops than x64 desktop or arm64. Not sure why compiling p7zip is so much faster on the Xeon than on the Ryzen or Aorus, gcc is 12.2 on both and the optimizer setting is -O2, no -march=native. The only explanation I can think of is thermal throttling, since both slow machines are laptops, and somehow GCC is triggering that in a way Go's compiler is not (nor apparently clang).
- diffeomorphism 4y ago> test was biased against the Mac because the M1 MBA was running on battery power and the HP DevOne was plugged in That does not matter at all for the M1 MBA. So no bias.
- 4y ago
- deleted 4y ago[deleted]