fix bug in time measurement of performance tests