Ryzen 7 3900x vs i5 10400 - cpu comparison for Gaming

Specs

Ryzen 7 3900xi5 10400
Average Price$439$179
BrandAMDINTEL
Cores126
Threads2412
Base Frequency4.64.3

Gaming performance (working with gtx 1080 Ti, Ultra quality)

FPS (Ryzen 7 3900x)FPS (i5 10400)
A Way Out 157.9156.4
AirMech Strike 147.8146.4
apexlegends 117.7116.6
Battlefield 4 77.276.4
BATTLETECH 98.597.6
Call of Duty ww2 163161.4
CSGO 286.7284
destiny2 140.8139.5
DOTA2 190.1188.3
Far Cry 5 123.3122.2
Fortnite 149.2147.8
Frostpunk 151.1149.6
GTA 97.896.8
LOL 258.4256
overwatch 184.8183.1
Path of Exile 180.9179.2
PUBG 96.795.8
Radical Heights 108.3107.3
rainbow6siege 113.8112.7
Sea of Thieves 152.4150.9
StarCraft 2 172.4170.8
Total War THREE KINGDOMS 88.888
Warframe 197.5195.7
World of Tanks 80.479.6

Conclusion

Price to Performance: i5 10400 is better. (59% Lower on Price, 1% Lower on performance.)

All resources

Games:
A Way Out AirMech Strike Apex Legends Battlefield 4 BATTLETECH Call of Duty WWII Counter-Strike: Global Offensive Destiny 2 Dota 2 Far Cry 5 Fortnite Frostpunk Grand Theft Auto V League of Legends Overwatch Path of Exile PlayerUnknown's Battlegrounds Radical Heights Rainbow Six | Siege Sea of Thieves StarCraft 2 Total War THREE KINGDOMS Warframe World of Tanks
GPUs:
RX 570rx 5700rx 5700 xtRX 580rx 590RX Vega 64gtx 1050gtx 1050 Tigtx 1060 3Ggtx 1060 6Ggtx 1070gtx 1070 Tigtx 1080gtx 1080 Tigtx 1660gtx 1660 supergtx 1660 Tigtx 970gtx 980gtx 980 Tigtx Titan Xrtx 2060rtx 2060 superrtx 2070rtx 2070 superrtx 2080rtx 2080 TiRTX 3070
CPUs:
Ryzen 5 1600xRyzen 5 2600Ryzen 5 2600xRyzen 5 3600Ryzen 5 3600xRyzen 7 1700XRyzen 7 3700xRyzen 7 3800xRyzen 7 3900xi3 7100i5 10400i5 7500i5 7600ki5 8400i5 8600ki5 9400fi7 10700ki7 7700Ki7 8700Ki7 9700ki7 9900k