From: Junio C Hamano Date: Fri, 22 Nov 2024 00:47:03 GMT Subject: Re: [PATCH] t/perf: use 'test_file_size' in more places Message-ID: In-Reply-To: <50c1368630684f235548d2e9a68d4de3745b5fe6.1732220875.git.me@ttaylorr.com> Taylor Blau writes: > 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 tests (since the former will include the filename in the output of wc). Another advantage is, instead of reading through the file and counting bytes, the helper uses stat() without reading. For a performance test that potentially deals with a large-ish file, it probably counts (pun intended) more. Will queue. Thanks.