Catman...chmark(3pm)
β¨ NAME β¨
Catmandu::Fix::Bind::benchmark β a binder that clocks how long your Fix functions take to run π
like, it's the little stopwatch bestie for your Catmandu fixes, from the User Contributed Perl Documentation (that's the 3pm vibe, iykyk) π
π¦ SYNOPSIS π¦
do benchmark(output:/dev/stderr)
foo()
end
# will create as side effect computation statistics on the stderr
elapsed command calls sec/comm
-------------------------------------------------------------
0.000006 Catmandu::Fix::foo 1 times 0.000006 secs/command
so you wrap your fix in the binder, point it at a file, and it just β¨drops the statsβ¨ as a side effect. the whole thing is giving "I'll be over here quietly timing you" π«Ά
π DESCRIPTION π
okay so the benchmark binder is the main character that runs all the Fix functions like normal, but ALSO β as a little side effect β it calculates the execution time of all wrapped functions over all input records. πβ¨
like it's not just doing the work, it's timing the work. no cap. every record that flows through gets counted, and at the end you get the receipts π
π CONFIGURATION π
πΈ output
Required. The path of a file to which the benchmark statistics will be written. π
like, you HAVE to give it somewhere to write the numbers. no path, no stats, periodt. (In the example above it's /dev/stderr, which is a whole mood π«Ά)
π SEE ALSO π
Catmandu::Fix::Bindβ the parent vibe, go say hi π
okay that's the whole page bestie, slay β¨
this lil doc was served up by perl v5.40.1 on 2026-01-24 π no notes, iconic, periodt ππ¦π
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms