, 5 min read
Graviton 3, Apple M2 and Qualcomm 8cx 3rd gen: a URL parsing benchmark
7 thoughts on “Graviton 3, Apple M2 and Qualcomm 8cx 3rd gen: a URL parsing benchmark”
, 5 min read
7 thoughts on “Graviton 3, Apple M2 and Qualcomm 8cx 3rd gen: a URL parsing benchmark”
asahi is fast 🙂
Run on (8 X 2424 MHz CPU s)
BasicBench_AdaURL_aggregator_href 15501605 ns 15478609 ns 45 speed=561.297M/s time/byte=1.78159ns time/url=154.747ns url/s=6.46214M/s
uname -a
Linux amac 6.2.0-asahi-11-1-edge-ARCH #2 SMP PREEMPT_DYNAMIC Sun, 19 Mar 2023 10:26:57 +0000 aarch64 GNU/Linux
sudo dmesg | grep Machine
[ 0.000000] Machine model: Apple MacBook Air (13-inch, M2, 2022)
https://arstechnica.com/gadgets/2022/03/asahi-linux-is-already-running-on-the-mac-studios-new-m1-ultra-chip/
?
but why WSL? there is some performace penalty for WSL
This benchmark is purely computational, there is no disk and IO access, so I do not expect any penalty from WSL. This being said, given that nobody knows how to install Linux on the Windows Dev Kit, the point is somewhat moot regarding Linux.
Admittedly, I could have installed FreeBSD on it, but that’s a fair amount of effort.
As for running the benchmarks under Windows proper… Visual Studio is typically behind in terms of optimization and performance. Running benchmarks under WSL, with native GCC or CLANG, is often better than compiling binaries using Visual Studio.
It is disappointing, but Microsoft has not kept up very well in terms of compiler technology.
AMD 7950x, clang 14 (targeting GCC 11.2’s STL), linux:
BasicBench_AdaURL_aggregator_href 10916160 ns 10902775 ns 64 GHz=5.41849 cycle/byte=6.81415 cycles/url=591.872 instructions/byte=23.2465 instructions/cycle=3.4115 instructions/ns=18.4852 instructions/url=2.01917k ns/url=109.232 speed=796.87M/s time/byte=1.25491ns time/url=109ns url/s=9.17427M/s
Corrected for 3.0 GHz:
* using the reported frequency of 5.4 – it is 196 ns/url, which is still faster. 🙂
* using the max boost of 5.7 – it is 207 ns/url
AMD Zen 4 looks very competitive.
Intel and AMD embarrassed Apple’s M2. 1280P and 5900HS are proven to be generally better. Apples silicone is generally inferior. But hey, that’s just after a total of 190 benchmarks.