Xbox360 had many advantage over ps3 that xbox1 don't have against ps4 that's why you can't consider it as a failure compared to ps4.
Xbox360 is not a failure because it's still ahead xbox360 too
PS4 - over 100 millions let's say 120m
Xbox One - 70m
Wii U - 25m
Vita - 15m if it will not get Final Fantasy Kingdoms Heart and Monster Hunter 20m otherwise
3DS - 80m