performace measuring script