Unix Timestamp

Chrisy Luke chrisy at flix.net
Mon Oct 22 22:50:16 UTC 2001


Greg A. Woods wrote (on Oct 22):
> $ time ksh -c 'i=0; while [ $i -lt 100 ] ; do date -r 1003723200 ; : $((i++)) ; done > /dev/null'
>    5.24s real    0.65s user    4.43s system 
[...]
> $ time ksh -c 'i=0; while [ $i -lt 10 ] ; do gawk '\''END{print strftime("%c",1003723200)}'\'' < /dev/null ; : $((i++)) ; done > /dev/null'
>    1.91s real    0.62s user    1.15s system

You only run awk 10 times according to that, not 100 like in the previous
two examples (only one quoted).

But this is getting OT.

Chris.
-- 
== chris at easynet.net                                    T: +44 845 333 0122
== Global IP Network Engineering, Easynet Group PLC     F: +44 845 333 0122



More information about the NANOG mailing list