{"id":22663715,"url":"https://github.com/yuuki/connperf","last_synced_at":"2025-03-29T09:17:32.795Z","repository":{"id":50753246,"uuid":"328703454","full_name":"yuuki/connperf","owner":"yuuki","description":"Network connections generator in Go.","archived":false,"fork":false,"pushed_at":"2021-06-02T00:32:56.000Z","size":110,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-03T23:53:45.624Z","etag":null,"topics":["benchmark","go","golang","load-generator","load-testing","network","performance-testing","tcp","udp"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuuki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-11T15:13:00.000Z","updated_at":"2022-04-24T15:36:31.000Z","dependencies_parsed_at":"2022-09-02T13:01:01.254Z","dependency_job_id":null,"html_url":"https://github.com/yuuki/connperf","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fconnperf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fconnperf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fconnperf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuuki%2Fconnperf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuuki","download_url":"https://codeload.github.com/yuuki/connperf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162148,"owners_count":20733357,"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":["benchmark","go","golang","load-generator","load-testing","network","performance-testing","tcp","udp"],"created_at":"2024-12-09T12:32:48.571Z","updated_at":"2025-03-29T09:17:32.770Z","avatar_url":"https://github.com/yuuki.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# connperf\n\nconnperf is a load generator for measuring the performance of TCP/UDP connections in Go.\n\n## Usage\n\n```shell-session\n$ connperf --help\nconnperf is a measturement tool for TCP connections in Go\n\nUsage:\n  connperf [command]\n\nAvailable Commands:\n  connect     connect connects to a port where 'serve' listens\n  help        Help about any command\n  serve       serve accepts connections\n\nFlags:\n  -h, --help   help for connperf\n\nUse \"connperf [command] --help\" for more information about a command.\n\n# connperf serve\n$ connperf serve --help\nserve accepts connections\n\nUsage:\n  connperf serve [flags]\n\nFlags:\n  -h, --help                help for serve\n  -l, --listenAddr string   listening address (default \"0.0.0.0:9100\")\n\n# connperf connect\n$ ./connperf connect --help\nconnect connects to a port where 'serve' listens\n\nUsage:\n  connperf connect [flags]\n\nFlags:\n  -c, --connections int32   Number of connections to keep (only for 'persistent')l (default 10)\n  -d, --duration duration   measurement period (default 10s)\n  -f, --flavor string       connect behavior type 'persistent' or 'ephemeral' (default \"persistent\")\n  -h, --help                help for connect\n  -i, --interval int        interval for printing stats (default 5)\n  -p, --proto string        protocol (tcp or udp) (default \"tcp\")\n  -r, --rate int32          New connections throughput (/s) (only for 'ephemeral') (default 100)\n      --show-only-results   print only results of measurement stats (default true)\n```\n\n## Examples\n\n### Commands\n\nRun as a server.\n\n```shell-session\n$ connperf serve -l 127.0.0.1:9100\n```\n\nRun as a client to put a load on the server.\n\n```shell-session\n$ connperf connect --flavor ephemeral --rate 1000 --duration 15s 127.0.0.1:9100\n```\n\n```shell-session\n$ connperf connect --flavor persistent --connections 1000 --duration 15s 127.0.0.1:9100\n```\n\nRun as a UDP client.\n\n```shell-session\n$ connperf connect --proto udp --rate 1000 --duration 15s 127.0.0.1:9100\n```\n\n### Reports\n\n```shell-session\n$ connperf connect --proto tcp --flavor ephemeral --rate 1000 --duration 15s 10.0.150.2:9200 10.0.150.2:9300\nPEER                 CNT        LAT_MAX(µs)     LAT_MIN(µs)     LAT_MEAN(µs)    LAT_90p(µs)     LAT_95p(µs)     LAT_99p(µs)     RATE(/s)\n10.0.150.2:9200      4996       4108            212             367             446             492             773             999.00\n10.0.150.2:9300      4999       10294           219             389             435             470             1595            999.40\n10.0.150.2:9200      4998       3884            209             369             448             489             950             999.40\n10.0.150.2:9300      4998       3057            220             356             426             473             1030            999.40\n10.0.150.2:9200      4802       22838           219             784             1030            2692            10264           0.00\n10.0.150.2:9300      4808       18730           219             801             1033            2382            13412           0.00\n--- A result during total execution time ---\n10.0.150.2:9200      14799      13736           223             530             501             953             5989            996.00\n10.0.150.2:9300      14809      18023           212             542             492             1110            5849            996.47\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuuki%2Fconnperf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuuki%2Fconnperf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuuki%2Fconnperf/lists"}