photonboy :
1) Hyperthreading can only add up to 30% boost and only if all threads can be utilized. At the same frequency you're likely to get no more than a 15% boost for well threaded games.
By that calculation you need to get to just over 4GHz for the G3258 to get similar performance to the G3258, or a LOWER frequency for games that aren't as well threaded (At least 3.7GHz to match i3-4160 if no HT benefit).
2) PASSMARK is a reference I usually use since it includes total theoretical performance (100% usage of CPU) as well as SINGLE THREAD performance. I've never had a problem with the results until today.
However Passmark says the single thread performance of the G3258 is slightly HIGHER than the i3-4160 which is not only a slightly better architecture (Pentium slightly stripped down) but also a higher frequency. That makes NO sense.
The i3-4160 has a higher score at 5011 (vs G3258 at 4016) due to the hyperthreading, but again single threading favors the G3258 by 5%? When the i3-4160 is just over 12% higher frequency?
The i3-4160 (3.6GHz) single thread performance should be over 12% higher to a G3258 at stock 3.2GHz and not lower at all.
3) *I concluded before that the i3-4160 beat the G3258 even with the G3258 overclocked slightly. I don't have all my links now but I'm not inclined to change my mind and think the Passmark G3258 score is likely incorrect.
The G3258 can beat the i3-4160 in EVERY game once overclocked high enough but then that requires a motherboard that's good enough and better CPU cooler both of which negate the value benefit. At say $35 for a CM "EVO" and $15 minimum for a higher quality board that's $50 I'd put towards a better CPU like the i3-4160.
Summary:
G3258 has its place depending on total budget. Either way, I strongly recommend ensuring the motherboard is reasonable quality.
I have unselected this as the correct answer because your AnAndtech link is for a different, more expensive processor than the one that was mentioned before, and as you failed to point that out in your post, it would be easy to assume that you were looking at graphs of the 4160 and not the 4360.
To add to this, I found that a Polish website did the reviews and benches of a 4150 directly against a G3258 (only 100mhz) difference and found the difference was mainly in the style of game. Open world games, like the newer RAGE engine (GTAV, Max Payne 3) and Crysis 3 favoured the 4150 slightly, but most other games favoured the G3258 and it's superior single core performance, and as they say theres no substitute for single core performance. Link to discussion in English with slides:
http://forums.anandtech.com/showthread.php?t=2389795
Of course all I'm trying to do is present you with a fair view of your options:
go with a G3258 with a strong OC which you'll need a good cooler for it and gain better performance with the majority of older games, and most new ones (lets face it there are more single and/or thread unbalanced games) but lose out in open world multithread balanced games.
or go with a i3 4160, save money on a weaker CPU cooler and gain only a fps decrease in all games
or go with a i3 4360, get a fps increase in most games period, but spend more money on the chip and cooling.