coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] tac: avoid unnecessary standard output buffering


From: Pádraig Brady
Subject: Re: [PATCH] tac: avoid unnecessary standard output buffering
Date: Sun, 22 Mar 2026 11:49:00 +0000
User-agent: Mozilla Thunderbird Beta

On 21/03/2026 22:52, Collin Funk wrote:
This has removes a tiny amount of overhead:

     $ seq 10000000 > input
     $ perf stat -e cpu-clock --repeat 1000 taskset 1 ./src/tac \
         input 2>&1 > /dev/null | grep -F 'seconds time'
               0.095707 +- 0.000223 seconds time elapsed  ( +-  0.23% )
     $ perf stat -e cpu-clock --repeat 1000 taskset 1 ./src/tac-prev \
         input 2>&1 > /dev/null | grep -F 'seconds time'
              0.1009378 +- 0.0000995 seconds time elapsed  ( +-  0.10% )

Makes sense.

thanks,
Padraig



reply via email to

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