STRING_BENCH(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, welcome to the STRING_BENCH(9) glow-up from the Kernel API Manual β€” it's giving benchmark-string-functions energy and we are obsessed πŸ’–βœ¨

✨ NAME ✨

STRING_BENCH β€” Benchmark string functions. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

STRING_BENCH (iters , func , ... );

πŸ’… ARGUMENTS πŸ’…

  • iters β€” Number of iterations to run. πŸ”
  • func β€” Function to benchmark. πŸ§ͺ
  • ... β€” Variable arguments passed to func. 🫢

🌸 DESCRIPTION 🌸

Okay so this disables preemption and measures the total time in nanoseconds to execute func(__VA_ARGS__) for iters times β€” including a small warm-up phase, because we warm up before we slay πŸ”₯

⭐ CONTEXT ⭐

Disables preemption during measurement. That's the whole context, no cap πŸ’€

πŸ‘‘ RETURN πŸ‘‘

Total execution time in nanoseconds (u64). That's the number, bestie β€” an actual u64 πŸ‘‘

🌈 SEE ALSO 🌈


mwah πŸ’‹ β€” signed off from ./lib/tests, October 2026 edition, with all the love πŸŽ€βœ¨

πŸ“¦ where this page comes from