$ npm install lines-per-second
CLI tool that counts how many lines per second is written to it
npm install -g lines-per-second
# just pipe a program to lps and it will start counting lines written per second ./some-program-that-prints | lps
MIT