Benchmark Lab04: Multiplying Matrices, Graphing with Gnuplot
Objectives:
Benchmarking/Timing programs that have increased amounts of computation.
Use of gnuplot to graph performance.
- Save this starter
program to your account.
- Compile and run this starter program. The output should look something like
this
- To write your results to a text file:
./starter > timing.txt
(this takes the screen output and writes it into the file timing.txt)
- Plot your results with Gnuplot
- Download
this gnuplot command file
- load gnuplot: "gnuplot"
- Run the above file to graph your data: gnuplot> load "timing.gnuplot"
- Rerun the program several times and replot the data each time. Different
results?
- Rewrite the starter program so that it multiplies two square matrices:
C = A X B where A, B, and C are square matrices
- Graph your results with Gnuplot