Two kinds of azobenzene polymers (including four samples: films of HMMM-DR1, HMMM-DR19 and films of side-chain azobenzene polymers PCN6 and PCN2) were synthesized and prepared. The HMMM-DR1 and PCN6 were studied and compared with all-optical poling (AOP) technique. Their poling and decaying process were studied and the fundamental AOP properties were described. Double frequency absorption dependence of AOP efficiency of thin films and the trade-off relationship between efficiency of photo-induced second order polarizability of the azobenzene and the transmission efficiency of double frequency were investigated, which are critically important to practical all-optical devices. The quasi-phase matching in the thin film PCN6 was proved and relaxation retardation effect of photo-induced second