From 6e5217d3208f6792a500fc408b4dcef0a17c5412 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 21 Jun 2012 20:52:11 +0200 Subject: [PATCH] Fix bug in io benchmark --- benchmark/io.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmark/io.js b/benchmark/io.js index 505d8d03aa..1c18e05f61 100644 --- a/benchmark/io.js +++ b/benchmark/io.js @@ -62,7 +62,7 @@ function readtest(size, bsize) { function wt(tsize, bsize, done) { var start = Date.now(); - s = writetest(tsize, bsizes[0]); + s = writetest(tsize, bsize); s.addListener('close', function() { var end = Date.now(); var diff = end - start; @@ -73,7 +73,7 @@ function wt(tsize, bsize, done) { function rt(tsize, bsize, done) { var start = Date.now(); - s = readtest(tsize, bsizes[0]); + s = readtest(tsize, bsize); s.addListener('close', function() { var end = Date.now(); var diff = end - start;