accomodate write stream buffering in benchmark script