Do autotrophs or hereotrophs perform the process of photosynthesis?

Autotrophs do.

Autotrophs are organisms that can produce their own food using raw materials and a source of energy obtained from the environment.

Some autotrophs are photosynthetic while some are chemosynthetic.

Heterotrophs cannot synthesize their own food and depend on autotrophs, directly or indirectly, for nutrition.