- add performance measurement code