Gaming speed, cores and clocks
On our gaming index the Core i7-7700K scores 33 and the Ryzen 7 1700 scores 30, about 10% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Core i7-7700K has 4 cores and 8 threads, and the Ryzen 7 1700 has 8 cores and 16 threads. The extra cores of the Ryzen 7 1700 help with video editing, streaming while you play and heavy multitasking more than with the game itself. Boost clocks are 4.5 GHz and 3.7 GHz.