performance test and adjust for optimize the speed of dealing data