https://pythonspeed.com/articles/reservoir-sampling-profilers/