make a quick benchmark script
do not read outside the bounds of the buffer