5903 Intro Scientific Prog:
Timing IO: Specification
- Compare the following times (graphs, tables, words, etc.)
- Reading n doubles in batches of m using fscanf.
- Reading n floats in batches of m using fscanf.
- Reading n ints in batches of m using fscanf.
- Reading n chars in batches of m using fscanf.
- Reading n chars in batches of m using fgetc.
- Writing n doubles in batches of m using fprintf.
- Writing n floats in batches of m using fprintf.
- Writing n ints in batches of m using fprintf.
- Writing n chars in batches of m using fprintf.
- Writing n chars in batches of m using fputc.
- By opening and closing a file repeatedly try to work out how long it takes for these bookkeeping operations.