How does the energy efficiency of nuclear fusion compare to gravitational contraction?

Answer

The energy released through nuclear fusion is orders of magnitude higher

The efficiency of energy release from nuclear fusion, where about 0.7% of mass is converted to energy, is orders of magnitude higher than what can be achieved by merely squeezing the gas via gravitational contraction.

How does the energy efficiency of nuclear fusion compare to gravitational contraction?
protostarstar formationastrophysicsenergy generation