Speed of read vs. fread

stevel at haddock.UUCP stevel at haddock.UUCP
Wed Jan 23 14:56:17 AEST 1985


> SIZE NAME        COMMENT
> 6144 fgetputc    using fgetc and fputc with stdio
> 7168 freadwrite  using fread and fwrite BUFSIZ blocks with stdio
> 6144 getputc     using getc and putc (macros) with stdio
> 5120 readwrite   using read and write BUFSIZ blocks (no stdio)

If you read/write in increments of other than BUFSIZ you will
notice fread/fwrite should be faster. Try read/write in increments
of 1 char.

Steve Ludlum, decvax!yale-co!ima!stevel, {amd|ihnp4!cbosgd}!ima!stevel



More information about the Comp.unix mailing list