{"id":16304825,"url":"https://github.com/moznion/persec","last_synced_at":"2025-10-25T14:30:27.917Z","repository":{"id":31515550,"uuid":"35079934","full_name":"moznion/persec","owner":"moznion","description":"A command to measure the throughput of per-sec which is on the basis of number of lines from STDIN","archived":false,"fork":false,"pushed_at":"2015-07-27T14:58:56.000Z","size":208,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T07:34:18.416Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Angristan/OpenVPN-install","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-05T05:32:48.000Z","updated_at":"2024-05-27T17:29:56.000Z","dependencies_parsed_at":"2022-09-09T10:21:59.329Z","dependency_job_id":null,"html_url":"https://github.com/moznion/persec","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fpersec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fpersec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fpersec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2Fpersec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/persec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238155447,"owners_count":19425716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:04:55.057Z","updated_at":"2025-10-25T14:30:27.600Z","avatar_url":"https://github.com/moznion.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"persec [![Build Status](https://travis-ci.org/moznion/persec.svg?branch=master)](https://travis-ci.org/moznion/persec) [![wercker status](https://app.wercker.com/status/58831f8aea401a8e2209351e359988f8/s/master \"wercker status\")](https://app.wercker.com/project/bykey/58831f8aea401a8e2209351e359988f8)\n==\n\nA command to measure the throughput of per-sec which is on the basis of number of lines from STDIN.\n\n![persec_demo](https://dl.dropboxusercontent.com/u/14832699/persec.gif)\n\nUsage\n--\n\n### Basic\n\n```sh\n$ some_command | persec [Options]\n```\n\n### Bar chart mode\n\n```sh\n$ some_command | persec --chart 100 [Other Options]\n```\n\nDescription\n--\n\nThis tool measures the throughput of per-sec which is on the basis of number of lines from STDIN (e.g. piping with `tail -f something`).\nMeasuring mechanism is really simple;\n\n1. Count the number of lines while fixed interval (default 60sec).\n2. Counted number divide by fixed interval, then it is enable to evaluate throughput of per-sec.\n\nDefault, this command also output lines which is from STDIN (like a `tee` command).\nIf you don't want to do that, please append `--notee` option.\n\nOptions\n--\n\n-  --delta=60: Interval as seconds to measure the throughput\n-  --help=false: Show helps\n-  --limit=0: It measures the throughput until number which is specified by this option. If this option is zero or negative, it measures unlimited.\n-  --notee=false: Don't tee if this option is true\n-  --out=\"\": Output destination of throughput. If this option is unspecified, results will be written into STDOUT.\n-  --pattern=\"\": A regexp pattern to filter the line. Filtering means this command measures throughput by matched lines only. If this option is unspecified, it doesn't filter.\n-  --timestamp=false: Prepend timestamp\n-  --chart=-1: Show throughput as a bar chart. This option receives int value as a maximum value of a chart. Default value of -1 means disable the chart mode. If 0 value is set, it will sample 5 time to determine the value of 100%.\n- --color=\"reset\": Colorize output. You can use colors which are supported by github.com/mgutz/ansi\n\nHow to install\n--\n\n### By `go get`\n\n```\n$ go get github.com/moznion/persec\n```\n\n### From GitHub Releases\n\nAccess to [https://github.com/moznion/persec/releases](https://github.com/moznion/persec/releases)\nand get an archive which is suitable your architecture.\n\nAuthor\n--\n\nmoznion (\u003cmoznion@gmail.com\u003e)\n\nLicense\n--\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fpersec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Fpersec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fpersec/lists"}