Matlab
Here follows a set of short but hopefully instructive examples illustrating the problems of getting good performance in Matlab. Note that Matlab 6.5 (and later) has a JIT-accelerator, so, it is important that you keep track of what version you are using.
It is important not to cut-and-paste (it is very slow for some reason; my guess is that the JIT-accelerator is not run in this case). So put the code in m-files and execute it by typing the name of the m-file, as usual. It may make a (huge) difference if you package the code as a script-file or as a function.
It is also important to read the last part of Benchmarks (the part about SpeedStep, PowerNow!, Cool'n'Quiet).
Include the code you have written in your report. You do not have to include the code I have written,