My parents lived the first half of their lives under a brutal socialist regime; which, by the way, were also secular) -- my dad was often interrogated, threatened, and abused by the secret police due to his Christianity.
To say that capitalism won is an understatement. It's by far the most humane economic system the world has ever seen. The corollary here is that capitalism works best when we have a rule of law, separation of church and state, and functioning political apparatus.