14 ms·
I did a side-by-side comparing with my friends' M1 macbook and my (more expensive, nearly brand new) ryzen 5800x workstation compiling rust. The ryzen was faste
by josephg 6y ago
I did a side-by-side comparing with my friends' M1 macbook and my (more expensive, nearly brand new) ryzen 5800x workstation compiling rust. The ryzen was faster - but it was really close. And the macbook beats my ryzen chip in single threaded performance. For reference, the ryzen compiles ripgrep in 19.7 seconds.
The comparison is way too close given the ryzen workstation guzzles power, and the macbook is cheaper, portable and lasts 22 hours on a single charge. If Apple can keep their momentum going year over year with CPU improvements, they'll be unstoppable. For now it looks like its not a question of if I'll get one, but when.
- postalrat 6y agoHow long is the battery life on both if compiling non-stop? Assuming both keep similar compile from start of battery to end it would be interesting to see if the ryzen is truly guzzling batteries.
- omegabravo 6y agoI've done a side by side with my Ryzen 3700x compiling a Go project. 6 seconds on the Ryzen, vs 9 seconds on the M1 air. `time go build -a`, so not very scientific. Could be attributed to the multicore performance of the Ryzen. Starting applications on the M1 seems to have significant delays too, but I'm not sure if that's a Mac OSX thing. Overall it's very impressive, I just don't see the same lunch eating performance as everyone else. The battery life and lack of fans is wonderful. edit: Updated with the arm build on OSX. 16s -> 9 seconds.
- deleted 6y ago[deleted]
- ideamotor 6y agoI find M1 optimized apps load quickly while others vary. But what really varies is website load times. Sometimes instant, sometimes delayed. All this said, there really is no comparison. I don’t even think about battery for the M1, I leave the charger at home, and it’s 100% cool and silent. It’s a giant leap for portable creative computing.
- yaktubi 6y agoI’d like to point out that compiling stuff is usually disk/io intensive. Could this not just be that the Apple machine has a faster hard drive/memory?
- yaktubi 6y agoI think these performance metrics are somewhat limited in their usefulness. A Ryzen workstation might not have the same single-core performance or energy efficiency—however, a ryzen workstation can have gobs of memory for massive data-intensive workloads for the same cost as a baseline M1 device. In addition: let’s talk upgradability or repairability. Oh wait, Apple doesn’t play that game. You’ll get more mileage on the workstation hands-down. The only win for those those chips I think is battery efficient for a laptop. But, then why not just VNC into a beastmode machine on a netbook and compile remotely? After all, that’s what CI/CD pipeline is for.
- harikb 6y agogranted they charge exorbitant prices for their hardware, but I can’t believe how my 2010 MacBook Pro is still functioning perfectly fine.. except for them making it unsupported. I can’t say that about any other pc/laptop I have had. Not even desktops
- apexalpha 6y agoI don't know, I feel other laptops at the same price point as Apple Macbooks do this too, sometimes even better. I bought a HP 8530w in 2009 or so and it still works. Replacing the DVD drive for a SSD required just a common Philips screwdriver and battery replacements are sold by HP themselves or many others.
- davidy123 6y agoExactly. Too many people compare a $400 cheap Windows laptop to a $1200 Macbook. Compare like for like, and the thing is likely to last until it's absolutely obsolete. And, while I don't really support this, some might find it an advantage to replace the computer three times for the same price. But people should be comparing to a well built, upgradable laptop (especially those that support not just RAM and disk but also display upgrades and adequate ports), running an operating system that has no arbitrary end of life.
- 6y ago
- atq2119 6y agoDid both machines compile to the same target architecture? If you did native compiles, then perhaps LLVM's ARM backend is simply faster than its x86 backend...
- bombcar 6y agoI think this is potentially a huge part of it - I'd do the benchmark by doing a native compile and a cross compile of each, and also do the same on a RAM disk instead of SSD (a large compile can end up just being a disk speed test if the CPU is waiting around for the disk to find files).
- outworlder 6y agoMaybe that would have been the case if only compilation times were reported to be good. But no, this is across many different kinds of workloads. Even Blender running in Rosetta can beat native x86 processors, which is bonkers.
- cbsmith 6y agoI dunnoh... the Ryzen 5800x laptops seem to be able to stay ahead of the M1's for most tasks.
- josephg 6y agoHuh? 5800x laptop? The 5800x is a desktop chip.
- cbsmith 6y agoThe 'X' was meant to be "various letter extensions on the 5800 series", such as 5800U, 5800H, 5800HS. I probably should have used different terminology from the model number, as there are other Zen 3 mobile processors like the 5900HX, 5980HS and 5980HX that if anything make the point stronger.
- snarfy 6y agoI'm still unconvinced it's the M1's design and not TSMC's fab process.
- cbsmith 6y agoI think the latest Ryzen 5800x CPUs kind of prove it's the TSMC fab process. You've now got M1s, Graviton2s, and Ryzens all crushing it to similar levels.
- GeekyBear 6y agoWhen you move to a smaller process node, you have a choice between improving performance or cutting power. (or some mix of both) Apple seems to have taken the power reduction with the A14 and M1 on TSMC 5nm, not the performance increase. >The one explanation and theory I have is that Apple might have finally pulled back on their excessive peak power draw at the maximum performance states of the CPUs and GPUs, and thus peak performance wouldn’t have seen such a large jump this generation, but favour more sustainable thermal figures. https://www.anandtech.com/show/16088/apple-announces-5nm-a14-soc-meagre-upgrades-or-less-power-hungry https://www.anandtech.com/show/16088/apple-announces-5nm-a14...
- ryanmarsh 6y agoAfter buying my M1 and benchmarking it against the top of the line i9 I considered shorting Intel's stock, alas they're so large it'll take a while for the decline to catch up with them.
- therockhead 6y agoI'm seeing a big different when compiling our project, with the M1 Macbook Pro beating the iMac Pro when building our projects (23min vs 38 mins). Is it all CPU though, or is building ARM artefacts less resource intensive than bulding ones for Intel ?
- ben-schaaf 6y agoiMac Pro has a large variety of performance, going from 8 to 18 cores and it uses a 4+ year old Xeon CPU. Unsurprisingly the 18 core handily beats the M1 in multi-core benchmarks: 18 core iMac Pro 13339: https://browser.geekbench.com/macs/imac-pro-late-2017-intel-xeon-w-2191b-2-3-ghz-18-cores https://browser.geekbench.com/macs/imac-pro-late-2017-intel-... M1 Mac mini 7408: https://browser.geekbench.com/macs/mac-mini-late-2020 https://browser.geekbench.com/macs/mac-mini-late-2020
- NicoJuicy 6y agoAre you sure Rust compilation can use multiple cores to the fullest? I don't use Rust, but a quick search returned for example this issue: https://github.com/rust-lang/rust/issues/64913 https://github.com/rust-lang/rust/issues/64913
- josephg 6y agoMy cpu usage graph shows all cores at 100% for most of the compilation. But near the end it uses fewer and fewer cores. Then linking is a single core affair. It seems like a reasonable all-round benchmark because it leans on both single- and multi- core performance. And I really care about rust compile times because I spend a lot of small moments waiting for the compiler to run.
- anw 6y ago> macbook … and lasts 22 hours on a single charge I keep hearing this but have not experienced this in person. I usually get about 5 hours of life out of it. My usual open programs are CLion, WebStorm, Firefox (and Little Snitch running in the background). However, even with not having IDEs open all the time, and switching over from Firefox to Safari, I’m only seeing about 8 hours of battery life (which is still nice compared with my 2013 MBP that has about 30 minutes of battery life).
- jhickok 6y agoThe Macbook Air does not get 22 hours but the Macbook Pro gets kinda close under the conditions specified in the test.
- spideymans 6y ago>However, even with not having IDEs open all the time, and switching over from Firefox to Safari, I’m only seeing about 8 hours of battery life (which is still nice compared with my 2013 MBP that has about 30 minutes of battery life). I would consider getting a warranty replacement. Something is wrong. For reference, my M1 Air averages exactly 12 hours of screen-on time (yes, I've been keeping track), and the absolute worst battery life I've experienced is 8.5 hours, when I was doing some more intense dev workflows.
- ArcMex 6y ago>For now it looks like its not a question of if I'll get one, but when. My exact sentiments. I've been looking for a gateway into Apple and the M1 Air seems like it. It has now become a matter of time and not just a fleeting thought.
- f6v 6y ago> If Apple can keep their momentum going year over year with CPU improvements I’ve been blown away with games running on M1. If Apple could up their GPU game as well, that’d be really cool.
- barbazoo 6y agoPower consumption is a good point. I wonder what the M1's power consumption is during those 19.7 seconds of compiling ripgrep compared to other platforms.
- minimaul 6y agoLow. For me, SoC power draw when compiling apps is usually around 15 to 18W on a M1 mac mini. My example app (deadbeef) compiles in about 60 seconds on that mac mini. On a 2019 i7 16” MBP (six core), it takes about 90 seconds, and draws ~65W for that period. So… radically more power efficient. edit: this is the same version of macOS (big sur), xcode, and both building a universal app (intel and ARM).
- JudasGoat 6y agoI have a Ryzen 7 4700g. I wanted to compare this to the GPU side of the M1. On Geekbench OpenGL test, it was slightly faster than the M1. I would like to find a better test.