The Confocal Laser Scanning Microscopy (CLSM) has been widely used in the semiconductor industry and biomedicine because of its depth discrimination capability. Subsequent to this technique has been developed in recent years Chromatic Confocal Microscopy. This method retains the same principle of confocal and offers the added advantage of removing the axial movement of the moving system. This advantage is usually accomplished with an optical element that generates a longitudinal chromatic aberration and a coding system that relates the axial position of each point of the sample with the wavelength that is focused on each. The present paper shows the performance of compact chromatic confocal microscope when some different diffractive elements are used for generation of longitudinal chromatic aberration. Diffractive elements, according to the process and manufacturing parameters, may have different diffraction efficiency and focus a specific wavelength in a specific focal position. The performance assessment is carried out with various light sources which exhibit an incoherent behaviour and a broad spectral width.