Gaming speed, cores and clocks
On our gaming index the Ryzen 3 2300X scores 25 and the Core i7-4790K scores 24, about 4% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Ryzen 3 2300X has 4 cores and 4 threads, and the Core i7-4790K has 4 cores and 8 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 4 GHz and 4.4 GHz.