Relative speed of Bourne vs. C Shells - C Shell is faster.
Joseph S. D. Yao
jsdy at hadron.UUCP
Fri Apr 12 05:14:27 AEST 1985
> [...getting onto a tangent...]
> ... The following setup shaves the script above
> (about 0.4u and 0.4s) down to 0.3u and 0.2s:
> #! /bin/awk -f
> BEGIN {
> x = 1;
> while (x < 100)
> if (x++ > 10)
> print "Hi!" x
> exit
> }
Near as I can tell, the first line only works if you are running the
C shell under 4BSD, which interprets the #! business.
Joe Yao hadron!jsdy at seismo.{ARPA,UUCP}
More information about the Comp.unix.wizards
mailing list