Ryzen 7 1700X vs i5 8400 - cpu comparison for Gaming

Specs

Ryzen 7 1700Xi5 8400
Average Price$350$178
BrandAMDINTEL
Cores86
Threads166
Base Frequency3.42.8

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

FPS (Ryzen 7 1700X)FPS (i5 8400)
destiny2 116126.2
overwatch 152.6165.7
GTA 80.587.6
DOTA2 156.5171.2
CSGO 237.2257
Warframe 163.1178.2
rainbow6siege 93.8102.1
Fortnite 122.5134.1
Sea of Thieves 125.3136.6
A Way Out 130.7141.8
LOL 213.8233.6
Far Cry 5 101.9110.9
PUBG 79.386.8
Call of Duty ww2 134.3146.8
Radical Heights 89.197.2
Battlefield 4 63.669.3
World of Tanks 66.272.2
apexlegends 97.2106.1
Path of Exile 149.3162.9
Total War THREE KINGDOMS 73.480
Frostpunk 124.5135.8
BATTLETECH 81.388.6
AirMech Strike 121.9133
StarCraft 2 142.2155.2

Conclusion

Price to Performance: i5 8400 is better. (49% Lower on Price, 9% Higher on performance.)

All resources

Games:
AirMech Strike Apex Legends A Way Out 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:
gtx 1050gtx 1050 Tigtx 1060 3Ggtx 1060 6Ggtx 1070gtx 1070 Tigtx 1080gtx 1080 Tigtx 2070gtx 2080gtx 2080 Tigtx 970gtx 980gtx 980 Tigtx Titan XRX 480RX 570RX 580RX Vega 64
CPUs:
i3 7100i5 7500i5 7600ki5 8400i5 8600ki7 7700Ki7 8700KRyzen 3 1200Ryzen 5 1600Ryzen 5 1600xRyzen 5 2600Ryzen 5 2600xRyzen 7 1700Ryzen 7 1700X