You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Swap + / -
This commit is contained in:
4
bench.js
4
bench.js
@@ -92,8 +92,8 @@ function report(label) {
|
|||||||
: 33
|
: 33
|
||||||
: 32
|
: 32
|
||||||
, synopsis = c > p
|
, synopsis = c > p
|
||||||
? '-' + (c - p)
|
? '+' + (c - p)
|
||||||
: '+' + (p - c);
|
: '-' + (p - c);
|
||||||
while (synopsis.length + label.length < 20) synopsis = ' ' + synopsis;
|
while (synopsis.length + label.length < 20) synopsis = ' ' + synopsis;
|
||||||
console.log(' \x1b[' + col + ';1m%s\x1b[0m: %s', label, 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);
|
||||||
|
Reference in New Issue
Block a user