You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
synopsis
This commit is contained in:
13
bench.js
13
bench.js
@@ -69,7 +69,6 @@ var queue = [
|
|||||||
|
|
||||||
function(){
|
function(){
|
||||||
fs.writeFileSync(path, JSON.stringify(curr), 'ascii');
|
fs.writeFileSync(path, JSON.stringify(curr), 'ascii');
|
||||||
console.log();
|
|
||||||
client.end();
|
client.end();
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@@ -91,11 +90,13 @@ function report(label) {
|
|||||||
? c > p + 50
|
? c > p + 50
|
||||||
? 31
|
? 31
|
||||||
: 33
|
: 33
|
||||||
: 32;
|
: 32
|
||||||
console.log(' \x1b[' + col + ';1m%s\x1b[0m:', label);
|
, synopsis = c > p
|
||||||
|
? '-' + (c - p)
|
||||||
|
: '+' + (p - c);
|
||||||
|
while (synopsis.length + label.length < 20) synopsis = ' ' + synopsis;
|
||||||
|
console.log(' \x1b[' + col + ';1m%s\x1b[0m: %s', label, synopsis);
|
||||||
console.log(' \x1b[33mprev\x1b[0m: %d ms', p);
|
console.log(' \x1b[33mprev\x1b[0m: %d ms', p);
|
||||||
console.log(' \x1b[33mcurr\x1b[0m: %d ms', c);
|
console.log(' \x1b[33mcurr\x1b[0m: %d ms', c);
|
||||||
if (c > p) {
|
console.log();
|
||||||
console.log(' previously was \x1b[33m%d\x1b[0m ms faster', c - p);
|
|
||||||
}
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user