Even with them all at 4.0 Ghz the 8700k is faster for gaming..https://www.techspot.com/article/1616-4ghz-ryzen-2nd-gen-vs-core-8th-gen/
Full test 1000 2000 and 8th gen.
Please remember that any mention of competitors, hinting at competitors or offering to provide details of competitors will result in an account suspension. The full rules can be found under the 'Terms and Rules' link in the bottom right corner of your screen. Just don't mention competitors in any way, shape or form and you'll be OK.