Intel Core i5 8400 's Advantages
Integrated graphics card
AMD Ryzen 7 5800 's Advantages
Released 3 years and 3 months late
Higher specification of memory (3200 vs 2666)
Larger memory bandwidth (51.2GB/s vs 41.6GB/s)
Newer PCIe version (4.0 vs 3.0)
Higher base frequency (3.4GHz vs 2.8GHz)
Larger L3 cache size (32MB vs 9MB)
More modern manufacturing process (7nm vs 14nm)