Don't use Scanf (). Disputable !!!

Henk Boetzkes henkbo at philce.UUCP
Tue Mar 22 01:00:32 AEST 1988


How reliable are the tprintf_tputs_twrite test ???
I just add two test more to your output.

"hello world\n" to /dev/null 100,000 times on a uVAX II running Ultrix 2.0:

printf		18 sec		(wall-clock time, not user or sys time)
puts		15 sec
write		59 sec

"hello world\n" to /dev/null 100,000 times on a VAX11/780  running Ultrix 2.0:

printf		20 sec	
puts		14 sec
write		57 sec

"hello world\n" to /dev/null 100,000 times on a SUN/280  running SUN 3.5:

printf		 4 sec	
puts		 4 sec
write		17 sec



More information about the Comp.lang.c mailing list