Gaming speed, cores and clocks
On our gaming index the Core i5-3450 scores 15 and the Core i5-2400 scores 14, about 7% faster for gaming. That gap is small and mostly shows up at 1080p with a very fast graphics card.
The Core i5-3450 has 4 cores and 4 threads, and the Core i5-2400 has 4 cores and 4 threads. Core counts are the same, so cache size and clock speed decide the difference. Boost clocks are 3.5 GHz and 3.4 GHz.