Thread (1 message) 1 message, 1 author, 2024-11-22

Re: [PATCH] t/perf: use 'test_file_size' in more places

From: Junio C Hamano <hidden>
Date: 2024-11-22 00:47:06

Taylor Blau [off-list ref] 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 <file") does not inadvertently break the
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.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help