add some performance measurement