Disk speed
Since the aim is just to build a function to compute the disk speed the easiest way is to create a temporary file and compute the time needed to write it to disk and read it again.
In this case the used specify the size in MB and a temporary file is created. Should we also add the possibilty to the user to add directly it's own file?