Comparing consoles to PCs in matter of their hardware is always difficult. The console might lose a comparison, their CPU can be weaker or their RAM less big than the PC, but the software (-> the games) are designed for that architecture. They use it in the best way, that's what makes consoles that strong, even after 5 years. The same game with the same engine can be a lot harder to run for PCs since there are more than two possible hardware-combinations (One and PS4) which need to be supported, I think you get my point.