Net primary production is the rate at which all the plants in an ecosystem produce the net usable form of energy. Some net primary production goes toward growth and reproduction of primary producers, while some are consumed by herbivores. Gross primary production (GPP) is the amount of chemical energy as biomass that primary producers create in a given length of time. Gross primary productivity is the rate at which photosynthesis or chemosynthesis occurs.