BLD: speed up test_perf.sh