North American Network Operators Group Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical Re: Unix Timestamp
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. -- == [email protected] T: +44 845 333 0122 == Global IP Network Engineering, Easynet Group PLC F: +44 845 333 0122
|