Session Ready
Exercise

Timing Dask array computations

Your job now is to create two Dask arrays from energy using different chunksizes. You'll then measure the time required (in milliseconds) to compute the standard deviation of each Dask array.

The NumPy array energy is provided as before and the module dask.array is imported for you as da.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Import the time module.
  • Invoke da.from_array() using energy with chunks set to 1/4 the length of energy.
  • Print the time in milliseconds to compute standard deviation with a dask.array with 4 chunks.