10000 GitHub - spencer-p/linerate: Print the rate of lines consumed on standard input
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Print the rate of lines consumed on standard input

License

Notifications You must be signed in to change notification settings

spencer-p/linerate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linerate: Print the rate of lines read from stdin

linerate is a command-line utility to print the rate of lines being printed.

For example, if you want to measure the QPS of your server:

$ tail /var/log/my-server.log | grep GET | linerate
9 lines/1s
3 lines/1s
16 lines/1s
15 lines/1s
12 lines/1s
...
Installation

Install with go install github.com/spencer-p/linerate@latest.

Usage:
Usage of ./linerate:
  -d string
    	Duration of time between printing line rates, i.e. inverted frequency (default "1s")
  -w int
    	Number of durations to window together (default 1)

About

Print the rate of lines consumed on standard input

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0