{"id":22025720,"url":"https://github.com/dwango-js/io-bench","last_synced_at":"2026-04-16T08:35:19.573Z","repository":{"id":33101729,"uuid":"36739411","full_name":"dwango-js/io-bench","owner":"dwango-js","description":"A benchmark tool for socket.io, engine.io and websocket server","archived":false,"fork":false,"pushed_at":"2015-06-03T14:42:21.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T11:12:18.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwango-js.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-06-02T14:37:26.000Z","updated_at":"2015-06-02T14:42:59.000Z","dependencies_parsed_at":"2022-09-12T19:11:15.560Z","dependency_job_id":null,"html_url":"https://github.com/dwango-js/io-bench","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/dwango-js/io-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fio-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fio-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fio-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fio-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwango-js","download_url":"https://codeload.github.com/dwango-js/io-bench/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwango-js%2Fio-bench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31878050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T07:36:03.521Z","status":"ssl_error","status_checked_at":"2026-04-16T07:35:53.576Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-30T07:19:14.461Z","updated_at":"2026-04-16T08:35:19.542Z","avatar_url":"https://github.com/dwango-js.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"io-bench\n========\n\n[![Build Status](https://travis-ci.org/dwango-js/io-bench.svg)](https://travis-ci.org/dwango-js/io-bench)\n\nA benchmark tool fo socket.io, engine.io and websocket server.\n\n```js\n// socket.io server to test\nvar io = require('socket.io');\nvar server = io(8080);\n\nserver.on('connection', function(socket) {\n  socket.on('message', function(data) {\n    // echo data so that we can benchmark response time.\n    socket.send(data);\n  });\n});\n```\n\nRunning benchmark.\n\n```sh\n$ io-bench http://localhost:8080\n```\n\n## Installation\n\n```sh\nnpm install -g io-bench\n```\n\n## Usage\n\n```\nUsage: io-bench [options] \u003curl\u003e\n\nOptions:\n\n  -h, --help                       output usage information\n  -n, --connections \u003cconnections\u003e  number of connections to perform per worker\n  -c, --concurrency \u003cconnections\u003e  number of new connections to establish at a time per worker\n  -m, --messages \u003cmessages\u003e        messages to be sent per connection\n  -R, --message-rate \u003crate\u003e        number of messages to be sent per second\n  -b, --buffer \u003csize\u003e              max size of a message\n  -w, --workers \u003cworkers\u003e          number of workers, default to numbers of CPU\n  -p, --polling-rate \u003crate\u003e        rate of polling (only for socket.io and engine.io)\n  -s, --sync                       whether to wait all connections are established before sending messages\n  -t, --transport \u003ctype\u003e           transport type, one of socket.io, engine.io or websocket. default to socket.io\n```\n\n### Examples\n\nSet number of connections and messages.\n\n```sh\n$ io-bench -n 100 -c 10 -m 1000 -R 30 http://localhost:8080\n```\n\nChange transport to use.\n\n```sh\n$ io-bench -t websocket http://localhost:8080\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwango-js%2Fio-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwango-js%2Fio-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwango-js%2Fio-bench/lists"}