We consider singular algebraic or analytic sets as metric spaces and a question of bi-Lipschitz classification of these spaces. We present a complete solution of this question for surfaces, some invariants for higher dimensions and some relations of this theory with other areas of mathematics.