If you don’t need the mobility, a linux desktop offers vastly, vastly improved performance for the money.
For less money than a MacBook Pro, I got a 24-core threadripper, 64g ram, top speed ssd. Test suite for work went from 45m on a 2017 macbook pro to 9m.