We investigated the efficiency droop phenomenon in blue and green GaN-based light-emitting diodes (LEDs) and laser diodes (LDs), which poses a significant challenge in high-power LEDs and is characterized by a reduction in external quantum efficiency at higher injection currents. Utilizing identical epi-structures for blue and green LEDs and LDs, with variations only in indium composition, our experiments revealed a gradual blue shift in the emission wavelengths as the injection current increased. Notably, the blue LED demonstrated a smaller shift compared to the green LED. In addition, the full width at half maximum of emission spectra increased with increasing injection current density, indicative of efficiency droop. Significantly, LDs consistently exhibited lower junction temperatures despite operating at higher current densities. This is attributed to the enhanced heat dissipation capability of the ridge waveguide LD structure, which results in a narrower emission spectrum and reduced efficiency droop compared to mesa LED structures. These outcomes highlight the efficiency of the ridge waveguide LD structure in heat dissipation from the active layer, offering crucial insights for the advancement of high-power light-emitting devices.