STRING_BENCH_BUF(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– STRING_BENCH_BUF(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for STRING_BENCH_BUF β€” yes, that’s the manual name, and we are absolutely not copying the boring duplicate header line, we’re folding it in cute-style πŸ’…


🌸 NAME 🌸

STRING_BENCH_BUF β€” a benchmark harness for single-buffer functions. That’s the whole vibe ✨


πŸŽ€ SYNOPSIS πŸŽ€

STRING_BENCH_BUF (test , buf_name , buf_size , func , ... );

πŸ’… ARGUMENTS πŸ’…

  • test β€” KUnit context. yep, the KUnit situation 🫢
  • buf_name β€” local char * variable name to be defined.
  • buf_size β€” local size_t variable name to be defined.
  • func β€” the function to benchmark. go off, func πŸ‘‘
  • ... β€” extra arguments for func.

πŸ¦‹ DESCRIPTION πŸ¦‹

Prepares a randomized, NUL-terminated buffer and iterates through lengths in bench_lens, defining buf_name and buf_size in each loop. literally the whole little benchmark setup, no cap 😭


🌈 SEE ALSO 🌈

Kernel file ./lib/tests/string_kunit.c: strscpy_check(9), alloc_max_bench_buffer(9), fill_random_string(9), STRING_BENCH(9).


byeeee, bestie 🫢 β€” source/version is ./lib/tests, dated October 2026 πŸŽ€βœ¨

πŸ“¦ where this page comes from