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

Reporting on failure

This commit is contained in:
Tj Holowaychuk
2010-09-17 17:59:13 -07:00
parent ebf517e825
commit a05b322709

View File

@@ -38,6 +38,9 @@ function report(prev, curr) {
console.log(' \x1b[' + col + 'm%s\x1b[0m:', label); console.log(' \x1b[' + col + 'm%s\x1b[0m:', label);
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(' previously was \x1b[33m%d\x1b[0m ms faster', c - p);
}
} }
fs.writeFileSync(path, JSON.stringify(curr), 'ascii'); fs.writeFileSync(path, JSON.stringify(curr), 'ascii');
console.log(); console.log();