fixed bug in checkResult method for the performance test