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

Conclusion

Price to Performance: i5 8400 is better. (49% Lower on Price, 9% Higher 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 Ti
CPUs:
Ryzen 5 1600xRyzen 5 2600Ryzen 5 2600xRyzen 5 3600Ryzen 5 3600xRyzen 7 1700XRyzen 7 3700xRyzen 7 3800xRyzen 7 3900xi3 7100i5 7500i5 7600ki5 8400i5 8600ki5 9400fi7 7700Ki7 8700Ki7 9700ki7 9900k