1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
This commit is contained in:
Tj Holowaychuk
2010-09-17 18:49:07 -07:00
parent d5d4350bad
commit db12990054

View File

@@ -69,7 +69,6 @@ var queue = [
function(){
fs.writeFileSync(path, JSON.stringify(curr), 'ascii');
console.log();
client.end();
}
];
@@ -91,11 +90,13 @@ function report(label) {
? c > p + 50
? 31
: 33
: 32;
console.log(' \x1b[' + col + ';1m%s\x1b[0m:', label);
: 32
, 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[33mcurr\x1b[0m: %d ms', c);
if (c > p) {
console.log(' previously was \x1b[33m%d\x1b[0m ms faster', c - p);
}
console.log();
}