let buf1 = Buffer.from('abc');
let buf2 = Buffer.from('abc');
let x = Buffer.compare(buf1, buf2);
console.log(x);
let buf1 = Buffer.from('a');
let buf2 = Buffer.from('b');
let x = Buffer.compare(buf1, buf2);
console.log(x);
let buf1 = Buffer.from('b');
let buf2 = Buffer.from('a');
let x = Buffer.compare(buf1, buf2);
console.log(x);
0 -1 1