Measure function performance times on objects