added more code for perf test