The double pass (DP) technique quantifies the optical quality of the eye by measuring its point spread function. The low reflectivity of the retina requires the use of a high-brightness, point-like illumination source, and thus, DP systems use laser diodes (LDs). However, LDs light produces speckle, and a low-cost solution to reduce speckle is to include a vibrating mirror in the beam path. With the goal of finding an all-optical solution, here we perform a comparative study of the amount of speckle produced by three semiconductor light sources: an LD, a light emitting diode (LED), and a superluminescent diode (SLED). We also compare the results with the speckle reduction that is obtained with a vibrating mirror. We find that the SLED is a good alternative to LD illumination, as the amount of speckle in the image is almost as low as that obtained with an LD and a vibrating mirror in the beam path.