Buffer improvements for InputStream benchmarks.