compile method and performance check