Unable to Replicate the sampling speed given in the example

Are you running in a notebook or on colab? This came up recently in another thread.