Gaming speed, cores and clocks
On our gaming index the Core i5-6400 scores 21 and the Core i3-6100 scores 20, about 5% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Core i5-6400 has 4 cores and 4 threads, and the Core i3-6100 has 2 cores and 4 threads. The extra cores of the Core i5-6400 help with video editing, streaming while you play and heavy multitasking more than with the game itself. Boost clocks are 3.3 GHz and 3.7 GHz.