Benchmark Lab04: Multiplying Matrices, Graphing with Gnuplot

Objectives:
Benchmarking/Timing programs that have increased amounts of computation.
Use of gnuplot to graph performance.

  1. Save this starter program to your account.

  2. Compile and run this starter program. The output should look something like this

  3. To write your results to a text file:
    ./starter > timing.txt
    (this takes the screen output and writes it into the file timing.txt)

  4. Plot your results with Gnuplot

  5. Rewrite the starter program so that it multiplies two square matrices:
    C = A X B where A, B, and C are square matrices

  6. Graph your results with Gnuplot