On 9/22/25 10:53 PM, pourko--- via Bug reports for the GNU Bourne Again SHell wrote:
Sometimes we would like to time the speed of some things for comparisons,
but those things execute too fast to measure. So we arrange to put them
inside loops, and then measure the loops. That is not very practical, because
the loops in bash add too much overhead for the things we're trying to measure.

The usual way to deal with this is to measure the loop overhead and take it
into account. Adding a special variable is not the right way to go about
it.

If we're going to add yet another way to execute a command a specified
number of times (we're not), adding a repeat count here is not the right
way to do it, either.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

  • [PATCH] command: ... pourko--- via Bug reports for the GNU Bourne Again SHell
    • Re: [PATCH] ... Chet Ramey

Reply via email to