refactor perf tests