A lot of CPU cores or fast cores?

Has anybody done some tests with different CPUs regarding the size of L3 cache?

I’ve seen some mentions that Ruby is very demanding for memory. That could give a hint about possible impact of CPU cache size, because Discourse works with large datasets.

I’m deciding on new server and choosing the right CPU. I wonder whether to go with highest clock or take into account also L3 cache size..

Currently I’m looking at Intel® Xeon® E-2174G with 4 cores clocking 3,8GHz and 8MB cache. But there are more expensive options with 12MB or 16MB cache. Are they worth the money?

Thanks!