Catman...chmark(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ 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