From 39943131ca8bf0872699a5a6c2c6c2a11f667eb1 Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 17 Sep 2010 18:07:06 -0700 Subject: [PATCH] Added lrange to bench.js --- bench.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/bench.js b/bench.js index 19c5248103..b18a6bf1f7 100644 --- a/bench.js +++ b/bench.js @@ -17,9 +17,15 @@ function next(){ } var queue = [ + + // FLUSHALL + function(){ client.flushall(next); }, + + // LPUSH + function(){ var n = times , start = new Date; @@ -29,6 +35,19 @@ var queue = [ next(); }); }, + + // LRANGE + + function(){ + var n = times + , start = new Date; + while (n--) client.lrange("mylist", 0, 99); + client.lrange("mylist", 0, 99, function (err, res) { + curr.lrange = new Date - start; + next(); + }); + }, + report ];