test buffer generating performance