Gaming speed, cores and clocks
On our gaming index the Core i7-5820K scores 24 and the Ryzen 5 2400 scores 23.1, about 4% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Core i7-5820K has 6 cores and 12 threads, and the Ryzen 5 2400 has 4 cores and 8 threads. The extra cores of the Core i7-5820K help with video editing, streaming while you play and heavy multitasking more than with the game itself. Boost clocks are 3.6 GHz and 3.4 GHz.