t/perf: factor boilerplate out of test_perf
commit968e77a5f87c1a50983323f15296a6dda53a1098
authorJeff King <peff@peff.net>
Fri, 17 Aug 2018 20:55:06 +0000 (17 16:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Aug 2018 21:04:47 +0000 (20 14:04 -0700)
tree82f4aa9697c37b5a5e6da841667a622c66be2b9a
parent7e8bfb0412581daf8f3c89909f1d37844e8610dd
t/perf: factor boilerplate out of test_perf

About half of test_perf() is boilerplate preparing to run
_any_ test, and the other half is specifically running a
timing test. Let's split it into two functions, so that we
can reuse the boilerplate in future commits.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/perf/perf-lib.sh