The micromachined membrane deformable mirror (MMDM) and piezoelectric deformable mirror (PDM) are two types of cost-effective deformable mirrors (DMs) that are widely used in ocular adaptive optics. In the current study, a 59ch MMDM and a 37ch PDM are tested and compared in generation of Zernike aberrations which are the most dominant of the human eye. The results reveal that although PDM performs better in larger scope, both DMs have almost similar performance if the individual generation coefficient is within the range of ±1 µm.