You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Yellow range
This commit is contained in:
8
bench.js
8
bench.js
@@ -65,8 +65,12 @@ function report() {
|
||||
for (var label in curr) {
|
||||
var p = prev[label] || 0
|
||||
, c = curr[label]
|
||||
, col = c > p ? 31 : 32;
|
||||
console.log(' \x1b[' + col + 'm%s\x1b[0m:', label);
|
||||
, col = c > p
|
||||
? c > p + 50
|
||||
? 31
|
||||
: 33
|
||||
: 32;
|
||||
console.log(' \x1b[' + col + ';1m%s\x1b[0m:', label);
|
||||
console.log(' \x1b[33mprev\x1b[0m: %d ms', p);
|
||||
console.log(' \x1b[33mcurr\x1b[0m: %d ms', c);
|
||||
if (c > p) {
|
||||
|
Reference in New Issue
Block a user