Question: Write (and test) python code that is going to measure the speed of reading from the web (using urllib or similar), reading from a file

Write (and test) python code that is going to measure the speed of reading from the web (using urllib or similar), reading from a file and writing to a file on your computer.That means the code will read or write some amount of data, time the operation, and compute the read or write rate (in MBytes/sec). Each of the measuring operations should execute for at least 4 seconds.

  1. Compute the speed of reading from disk
  2. Compute the speed of reading from the web
  3. Compute the speed of writing to disk
  4. Finally, add a print statement in part 3-a (i.e., print everything you read from the file) and measure the new throughput in MBytes/sec.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!