printf is faster when piped through tee

Chris Faylor cgf@cygnus.com
Sat Sep 2 19:13:00 GMT 2000


On Sat, Sep 02, 2000 at 04:21:45PM -0400, Norman Vine wrote:
>Jonas Jensen writes:
>>
>>> >Something's wrong with the performance of printf. When compiling with
>>> >gcc, printf executes much slower than with Microsoft's "cl". The funny
>>> >thing is that when I pipe those programs through "tee", they're both
>>> >(equally) fast.
>>>
>>
>>Did you do this on purpose or something? It seems a bit weird that a write
>>takes _excactly_ 1/100th of a second, both on my GeForce-powered desktop
>>comp. and my weak laptop...
>>
>
>Hint -
>you might want to perform your test using this terminal or something similar
> http://www.io.com/~bub/rxvt.html
>instead of the console device.

No.  This would use a completely different mechanism than console I/O.  It
would exercise cygwin ptys.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list