Molecular simulations of fragility of linear and ring polymers