The criteria for measuring the quality of a CNC program are: the smallest processing time, the smallest tool loss and the best results. These three indicators are contradictory, but they are interdependent. It is necessary to find a balance point in practice to achieve the optimization of benefits.