The leakage of the electronic current of a laser diode (LD) has some significant influences on the performance of the LD. In this study, commercial simulation software LASTIP is used to numerically evaluate the performances of LDs by using different wavelengths and Al contents of the electron blocking layer (EBL). These LDs a adopt multilayer structure, which contains cladding layers, waveguide layers, multiple quantum well layers, contact layers and an AlxGa1−xN EBL. The influence mechanism of EBL is theoretically examined by analyzing the simulated performances. It is found that for short-wavelength violet LDs, the electrical and optical properties of the LD will reach the optimum state when the Al content (x) in the EBL is nearly 0.25. For long-wavelength green LDs, it will achieve optimum electrical and optical properties when the Al content in the EBL is as low as possible. We also compare the simulation results of LDs with emission wavelengths in the range of violet and green, including blue cyan, for a more general evaluation. According to the simulated results, it is verified that the influence of the EBL’s Al content on LD performance enhances as the wavelength increases.