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