added code for precision etc measurement