bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] command: time


From: Chet Ramey
Subject: Re: [PATCH] command: time
Date: Tue, 23 Sep 2025 12:30:47 -0400
User-agent: Mozilla Thunderbird

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    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]