In MATLAB, compression can be a large bottleneck of save operations. In the test code above, 90% of the time is spent compressing the data that will be written to the MAT-file. Thus, the performance results observed are not accurately depicting the comparative speed of writing to different storage drives.
In order to isolate the performance of writing to disk, time a 'save' operation that does not compress the data being saved.
You can do so by calling 'save' with the flags '-v7.3' and '-nocompression'. The first flag, '-v7.3', lets you save to a Version 7.3 MAT-file, which supports saving large variables without compressing them. The second flag, '-nocompression', allows you to save without compressing your data. You can see an example of both of these flags in use here:
Using these flags will make a 'save' operation significantly faster, and will allow you to observe distinct performance differences when saving to different types of drives.
Best Answer