benchmark: Correct the bufferSize to highWaterMark
authorJackson Tian <shyvo1987@gmail.com>
Sun, 1 Sep 2013 17:41:00 +0000 (01:41 +0800)
committerFedor Indutny <fedor.indutny@gmail.com>
Wed, 6 Nov 2013 12:32:22 +0000 (16:32 +0400)
  The bufferSize has been removed. Use highWaterMark instead of.

benchmark/fs/read-stream-throughput.js

index 45582e9..a181a2d 100644 (file)
@@ -38,7 +38,7 @@ function main(conf) {
 function runTest() {
   assert(fs.statSync(filename).size === filesize);
   var rs = fs.createReadStream(filename, {
-    bufferSize: size,
+    highWaterMark: size,
     encoding: encoding
   });