From: Taylor Blau Date: Thu, 21 Nov 2024 20:29:24 GMT Subject: [PATCH] t/perf: use 'test_file_size' in more places Message-ID: <50c1368630684f235548d2e9a68d4de3745b5fe6.1732220875.git.me@ttaylorr.com> The perf test suite prefers to use test_file_size over 'wc -c' when inside of a test_size block. One advantage is that accidentally writign "wc -c file" (instead of "wc -c --- I noticed while reviewing Stolee's --full-name-hash series that he added new test_size tests that use the test_file_size helper instead of "wc -c". I thought it would be good to clean up the existing uses of "wc -c" in the perf suite as a result, which is what this patch does. t/perf/p5311-pack-bitmaps-fetch.sh | 2 +- t/perf/p5332-multi-pack-reuse.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/perf/p5311-pack-bitmaps-fetch.sh b/t/perf/p5311-pack-bitmaps-fetch.sh index 426fab87e32..047efb995d6 100755 --- a/t/perf/p5311-pack-bitmaps-fetch.sh +++ b/t/perf/p5311-pack-bitmaps-fetch.sh @@ -39,7 +39,7 @@ test_fetch_bitmaps () { ' test_size "size $title" ' - wc -c