![]() ![]() This benchmark really highlights the slowness of WSL1 and MacOS In this benchmark we read 10 random files that are 10_000 bytes long from a directory containing 5000 files. It seems that in a steady state after the slow boot, Mac can beat virtualized Linux performance but remains slower than non virtualized Linux. WSL2 and Catalina on the same machine have similar performance running our spec file. MBP i7 2.6 GHz, 15’’ 2018, Catalina 16Gb RAMĮven if we compensate for the 1 second slower boot, performance of the 9980HK under macOS is still 10% or so slower than Linux using the same CPUĪgain, to of the range laptops are very very close to top of the range desktops for running a single specĭocker on Mac is a world of pain when it comes to developing Rails In this benchmark we run: bin/rspec spec/models/post_spec.rb -seed 1, it is one of our larger spec files and is pretty representative.ĭesktop: AMD Ryzen 3950X, Arch, NVMe, ruby 2.6.5 (asdf) We stopped benching on rbenv based systems, everyone moved to chruby or rvm cause the shims rbenv adds introduce significant delays on boot. Top of the range laptops perform Rails boot very close to decked up desktops WSL1 is slower on boot, but can have adequate performance if you enable bootsnap (which we do)ĩ900K by intel is the single thread king, beating both the 3900X and 3950X by AMDģ950X though on paper faster than the 3900X failed to beat any of our 3900X based computers on single thread benches despite the 2x price tag. MBP i7-3615QM, MacOS Catalina (2.3 quad mid 2012)Īn ancient 2012 MacBook Pro with WSL2 boots Discourse almost as fast as the state of the art MacBook Pro!ĩ880HK CPU boots about 80% faster on Linux than it does in macOS Lenovo P1 - Gen 2 - 9850H - WSL1 - Ubuntu Lenovo P1 - Gen 2 - 9850H - WSL2 - Ubuntuĭesktop: AMD Ryzen 3950X, Arch, NVMe, ruby 2.6.5 (rvm) In this benchmark we simply run rails r Post.first.ĭesktop - 9900KF - Asus Prime Z370 - nvme - Archĭesktop - 9900KF - Asus Prime Z370 - nvme - WSL2 Here are some examples of the benchmarks we got (abbreviated, cause we have many benches): Booting Rails The same CPU tends to perform a lot better (especially boot) on either Linux native or WSL2 (virtualized Linux on Windows) than it does on MacOSĪdditionally, I took the time to run the same benchmark on a dual booting Mac that I have. We have run the benchmark on many of our development machines and noticed a trend. The benchmark lives here, anyone can run it. It also contains some micro benches to help isolate culprits including: Converting text to HTML via our markdown library.It is a simple benchmark that measures performance of various tasks you are likely to run into in development: Since then I crafted a version of Discourse Bench (used at: ) that is there to profile “performance” of local development machines. Noah Gibbs started some basic investigation but did not come up with anything definitive. Thanks all.About a year ago I noticed various benchmarks such as running specs were running abnormally slow on macOS. This happens with shields on or off.Ĭoinbase takes 3 seconds on Chrome and 7 seconds on Brave.ĭo I need to clear cache and delete cookies? Uninstall and reinstall? I’m just a little concerned about losing all my saved logins/passwords, extensions and autofill options. Typing the URL and then pressing Enter takes just under 1 second on Chrome and over 4 on Brave. It’s usually at least twice as fast in seconds and often more than twice as fast. I’ve also done a comparison with Chrome and wow, Chrome is almost always faster. Sometimes even typing I’ll get the wheel for a second and then you can see the words start going. Scrolling is also very laggy and seems to move in chunks. When I scroll up or down I get the wheel for a second and then it scrolls. When I click on something most of the time, I get the spinning wheel for a second and then it goes through. I’m using a 2019 Macbook with updated ios and newest Brave version. I’ve been using it since right after it was released and it just gets slower and slower. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |