PERFORMANCE.SH(1)
π¦ NAME π¦
okay bestie, this is PERFORMANCE.SH(1), from the User Contributed Perl Documentation collection. The actual NAME vibe is BeakerLib - performance - Performance measuring routines.
π DESCRIPTION π
This is a library of helpers and shortcut for performance monitoring of applications. It provides various means of measuring time and memory performance of programs.
Itβs literally giving βtoolbox for timing and memory performanceβ energy. β¨
π₯ FUNCTIONS π₯
β±οΈ Time Performance β±οΈ
πββοΈ rlPerfTime_RunsInTime
Measures how many runs of some commands can be done in specified time. This approach is suitable for short-time running tasks (up to few seconds), where averaging few runs is not precise. This is done several times, and the final result is the average of all runs. It prints the number on stdout, so it has to be captured.
rlPerfTime_RunsInTime command [time] [runs]
commandβ command to run.timeβ time in seconds (optional, default=30).runsβ number of averaged runs (optional, default=3).
π’ rlPerfTime_AvgFromRuns
Measures the average time of running some task. This approach is suitable for long-time running tasks (tens of seconds and more), where it is precise enough. Measured runs can be preceded by dry run, which is not measured and its purpose is to warm up various caches. It prints the number on stdout, so it has to be captured. Or, the result is then stored in the special rl_retval variable.
rlPerfTime_AvgFromRuns command [count] [warmup]
commandβ command to run.countβ times to run (optional, default=3).warmupβ warm-up run; it runs if this option is not"warmup"(optional, default="warmup").
capture that stdout, bestie β it prints the number, so it has to be captured. no cap. π
π AUTHORS π
- Petr Muller
<pmuller@redhat.com>
source/version: perl v5.32.1 Β· date: 2026-04-07 Β· page: PERFORMANCE.SH(1) πβ¨
π¦ where this page comes from
- epel 9: beakerlib 1.33.3-1.el9 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms