You have never lost money in stocks over any 20-year period, but you have wiped out half your portfolio in bonds (after inflation). So which is the riskier asset?

You have never lost money in stocks over any 20-year period, but you have wiped out half your portfolio in bonds (after inflation). So which is the riskier asset?