My experience is that macOS is similar to how Windows used to be. You have to wipe it out and reinstall it every year or two to get your performance back.
In fact, performance has gotten slightly better for me on my 2013 MacBook Pro, especially after the Metal/APFS upgrade after High Sierra. And I’ve been upgrading since Mavericks now, not doing a clean install.