In this case, a chip-to-chip comparison is performed, that is, chips of the same specifications on the same (or different) wafer are compared with each other, and a portion where there is a discrepancy between the two patterns or the like is deemed as a defect.