1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Added lrange to bench.js

This commit is contained in:
Tj Holowaychuk
2010-09-17 18:07:06 -07:00
parent 6e2b52cd93
commit 39943131ca

View File

@@ -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
];