{"id":21358112,"url":"https://github.com/raycad/nodejs-cluster","last_synced_at":"2025-03-16T06:16:21.399Z","repository":{"id":141974889,"uuid":"102932521","full_name":"raycad/nodejs-cluster","owner":"raycad","description":"NodeJS Performance Testing","archived":false,"fork":false,"pushed_at":"2017-09-10T05:18:53.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T18:32:32.840Z","etag":null,"topics":["nodejs-cluster","websocket"],"latest_commit_sha":null,"homepage":"","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/raycad.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-09T06:30:00.000Z","updated_at":"2022-11-02T16:30:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"4dc73413-5ddd-4f26-818a-3e882f28e3fb","html_url":"https://github.com/raycad/nodejs-cluster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raycad%2Fnodejs-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raycad%2Fnodejs-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raycad%2Fnodejs-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raycad%2Fnodejs-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raycad","download_url":"https://codeload.github.com/raycad/nodejs-cluster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830956,"owners_count":20354856,"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":["nodejs-cluster","websocket"],"created_at":"2024-11-22T05:14:25.149Z","updated_at":"2025-03-16T06:16:21.378Z","avatar_url":"https://github.com/raycad.png","language":"JavaScript","readme":"****Example for testing NodeJS performance.****\u003cbr /\u003e\n\n**1. ws-server**\u003cbr /\u003e\nA websocket server example.\u003cbr /\u003e\nSwitch **USE_CLUSTER_MODE** and **USE_ASYNC** in the **constants.js** file to enable cluster and async mode.\u003cbr /\u003e\n\nUSE_CLUSTER_MODE: 0\u003cbr /\u003e\nUSE_ASYNC: 0\u003cbr /\u003e\n\n```\n$ cd ws-server\n$ npm install\n$ node main.js\n```\n\nIf you want to test separately with standalone \u0026 cluster modes you can use the following commands:\u003cbr /\u003e\n\n```\n// Start in standalone mode\n$ node node.js\n```\n\n```\n// Start in cluster mode\n$ node cluster.js\n```\n\n**2. ws-client**\u003cbr /\u003e\nA websocket client example.\u003cbr /\u003e\n\n```\n$ cd ws-client\n$ npm install\n$ node main.js\n````","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraycad%2Fnodejs-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraycad%2Fnodejs-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraycad%2Fnodejs-cluster/lists"}