The reaction shown by the second diagram is more exothermic. There is a greater difference in energy between the reactants and products. The green arrow is longer.
Not all reactions give off heat like this. In fact, some actually take in or absorb energy from their surroundings, and the reacting substances feel cold. They’re called endothermic reactions.