add measure function performance code