git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jeff King <peff@peff.net>
Date
Nov 22, 2024, 08:28 UTC
Message-ID
<20241122082805.GC1179306@coredump.intra.peff.net>
In-Reply-To
<50c1368630684f235548d2e9a68d4de3745b5fe6.1732220875.git.me@ttaylorr.com>
On Thu, Nov 21, 2024 at 03:29:24PM -0500, Taylor Blau wrote:
> 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).

The use of "prefers" here confused me, because I did not think we used test_file_size at all yet. I am certainly OK with arguing that we should, but I was just confused on first read. Maybe you mean "s/perf//"?

Also, s/writign/writing/.
> 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.

Perhaps we should also touch the one in t/perf/README, which points people using test_size to using "wc -c" in the first place?

-Peff
Previous: Junio C Hamano
Message 3 of 3 in “t/perf: use 'test_file_size' in more places”
  1. t/perf: use 'test_file_size' in more placesTaylor Blau, Nov 21, 2024
  2. Junio C HamanoNov 22, 2024
  3. Jeff KingNov 22, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.