Maybe not, but it's always felt faster to me.
In fact, sometimes Windows 10 seems to be even slower than older versions of Windows.
I have an old laptop running Windows Vista, which runs WAY faster than a much newer laptop I have running Windows 10.
In fact, I've never used a computer running Windows 10 that I didn't feel was laggy.
macOS, on the other hand...
The only time I can remember feeling like it was truly slow was when I was running snow leopard off a USB flash drive (don't ask).
I ran High Sierra on a mid-2007 iMac with an upgraded CPU (T9300), and it was still faster than a newer, touchscreen desktop running Windows 10 (and didn't die and have to have a Windows reinstallation twice).
I know I sound like a Windows hater, but that's not the case. I'm just saying what my experience has been.
But, I'd say if you are just wanting to do web development, using Windows or Linux will save you a large price tag.
But if you want to do iOS development in Swift, Apple won't let you do that from anything but a Mac.
Of course, you could always use something like Flutter or React Native (or Flutter!) instead.